|
416 | 416 | }, |
417 | 417 | { |
418 | 418 | "cell_type": "code", |
419 | | - "execution_count": 13, |
| 419 | + "execution_count": null, |
420 | 420 | "metadata": {}, |
421 | 421 | "outputs": [ |
422 | 422 | { |
|
439 | 439 | "# Choose a file as test input\n", |
440 | 440 | "test_input_path = image_files[0][0]\n", |
441 | 441 | "!rm -rf {input_folder} && mkdir -p {input_folder} && cp {test_input_path} {input_folder} && ls {input_folder}\n", |
442 | | - "# Need to copy the model file to its own clean subfolder for pacakging, to workaround an issue in the Packager\n", |
| 442 | + "# Need to copy the model file to its own clean subfolder for packaging, to workaround an issue in the Packager\n", |
443 | 443 | "!rm -rf {models_folder} && mkdir -p {models_folder}/model && cp classifier.zip {models_folder}/model && ls {models_folder}/model\n", |
444 | 444 | "\n", |
445 | 445 | "%env HOLOSCAN_INPUT_PATH {input_folder}\n", |
|
558 | 558 | }, |
559 | 559 | { |
560 | 560 | "cell_type": "code", |
561 | | - "execution_count": 16, |
| 561 | + "execution_count": null, |
562 | 562 | "metadata": {}, |
563 | 563 | "outputs": [], |
564 | 564 | "source": [ |
|
579 | 579 | "\n", |
580 | 580 | " def __init__(\n", |
581 | 581 | " self,\n", |
582 | | - " frament: Fragment,\n", |
| 582 | + " fragment: Fragment,\n", |
583 | 583 | " *args,\n", |
584 | 584 | " app_context: AppContext,\n", |
585 | 585 | " model_name: Optional[str] = \"\",\n", |
|
606 | 606 | " # The name of the optional input port for passing data to override the output folder path.\n", |
607 | 607 | " self.input_name_output_folder = \"output_folder\"\n", |
608 | 608 | "\n", |
609 | | - " # The output folder set on the object can be overriden at each compute by data in the optional named input\n", |
| 609 | + " # The output folder set on the object can be overridden at each compute by data in the optional named input\n", |
610 | 610 | " self.output_folder = output_folder\n", |
611 | 611 | "\n", |
612 | 612 | " # Need the name when there are multiple models loaded\n", |
|
617 | 617 | " self.model = self._get_model(self.app_context, self.model_path, self._model_name)\n", |
618 | 618 | "\n", |
619 | 619 | " # This needs to be at the end of the constructor.\n", |
620 | | - " super().__init__(frament, *args, **kwargs)\n", |
| 620 | + " super().__init__(fragment, *args, **kwargs)\n", |
621 | 621 | "\n", |
622 | 622 | " def _get_model(self, app_context: AppContext, model_path: Path, model_name: str):\n", |
623 | 623 | " \"\"\"Load the model with the given name from context or model path\n", |
|
839 | 839 | }, |
840 | 840 | { |
841 | 841 | "cell_type": "code", |
842 | | - "execution_count": 21, |
| 842 | + "execution_count": null, |
843 | 843 | "metadata": {}, |
844 | 844 | "outputs": [ |
845 | 845 | { |
|
954 | 954 | "\n", |
955 | 955 | " def __init__(\n", |
956 | 956 | " self,\n", |
957 | | - " frament: Fragment,\n", |
| 957 | + " fragment: Fragment,\n", |
958 | 958 | " *args,\n", |
959 | 959 | " app_context: AppContext,\n", |
960 | 960 | " model_name: Optional[str] = \"\",\n", |
|
981 | 981 | " # The name of the optional input port for passing data to override the output folder path.\n", |
982 | 982 | " self.input_name_output_folder = \"output_folder\"\n", |
983 | 983 | "\n", |
984 | | - " # The output folder set on the object can be overriden at each compute by data in the optional named input\n", |
| 984 | + " # The output folder set on the object can be overridden at each compute by data in the optional named input\n", |
985 | 985 | " self.output_folder = output_folder\n", |
986 | 986 | "\n", |
987 | 987 | " # Need the name when there are multiple models loaded\n", |
|
992 | 992 | " self.model = self._get_model(self.app_context, self.model_path, self._model_name)\n", |
993 | 993 | "\n", |
994 | 994 | " # This needs to be at the end of the constructor.\n", |
995 | | - " super().__init__(frament, *args, **kwargs)\n", |
| 995 | + " super().__init__(fragment, *args, **kwargs)\n", |
996 | 996 | "\n", |
997 | 997 | " def _get_model(self, app_context: AppContext, model_path: Path, model_name: str):\n", |
998 | 998 | " \"\"\"Load the model with the given name from context or model path\n", |
|
0 commit comments