Skip to content

Commit 2cb7bf4

Browse files
committed
Rely on optimum-cli to be on PATH
1 parent b83d52c commit 2cb7bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gimpopenvino/plugins/openvino_utils/tools/model_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def _download_model(self, model_id):
857857
#print("optimun-cli full install path",full_install_path)
858858
import subprocess
859859

860-
optimum_ex = sys.executable.replace("python", "optimum-cli").replace("optimum-cli3", "optimum-cli")
860+
optimum_ex = "optimum-cli"
861861

862862
output_file = Path(os.path.join(full_install_path, "export_output.log"))
863863
if(model_id != "sd_15_inpainting"):
@@ -1370,4 +1370,4 @@ def dl_sd_15_LCM(self, model_id, only_npu_recompilation=False):
13701370

13711371
# Write the data to a JSON file
13721372
with open(os.path.join(install_location, "stable-diffusion-1.5", model_1, file_name), 'w') as json_file:
1373-
json.dump(config, json_file, indent=4)
1373+
json.dump(config, json_file, indent=4)

0 commit comments

Comments
 (0)