Skip to content

Commit 274d1f8

Browse files
committed
fix sdxl-turbo running without quantization
1 parent 1628978 commit 274d1f8

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

notebooks/sdxl-turbo/sdxl-turbo.ipynb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@
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
},
@@ -474,11 +478,6 @@
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"
@@ -767,7 +766,6 @@
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",

0 commit comments

Comments
 (0)