File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 450450 "\n",
451451 "core = ov.Core()\n",
452452 "\n",
453+ "model_dir_int8 = Path(\"./model_int8\")\n",
454+ "UNET_INT8_OV_PATH = model_dir_int8 / \"unet\" / \"openvino_model.xml\"\n",
455+ "UNET_OV_PATH = model_dir / \"unet\" / \"openvino_model.xml\"\n",
456+ "\n",
453457 "%load_ext skip_kernel_extension"
454458 ]
455459 },
474478 "import os\n",
475479 "import shutil\n",
476480 "\n",
477- "\n",
478- "model_dir_int8 = Path(\"./model_int8\")\n",
479- "UNET_INT8_OV_PATH = model_dir_int8 / \"unet\" / \"openvino_model.xml\"\n",
480- "\n",
481- "\n",
482481 "if not model_dir_int8.exists():\n",
483482 " shutil.copytree(model_dir, model_dir_int8)\n",
484483 " os.remove(UNET_INT8_OV_PATH) # remove to replace by optimised"
767766 "import nncf\n",
768767 "from nncf.scopes import IgnoredScope\n",
769768 "\n",
770- "UNET_OV_PATH = model_dir / \"unet\" / \"openvino_model.xml\"\n",
771769 "if not UNET_INT8_OV_PATH.exists():\n",
772770 " unet = core.read_model(UNET_OV_PATH)\n",
773771 " quantized_unet = nncf.quantize(\n",
You can’t perform that action at this time.
0 commit comments