Skip to content

Commit 216340d

Browse files
committed
Fix bug.
1 parent a92b859 commit 216340d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/onnx_impl/pipelines/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import shutil
44
import tempfile
55
from typing import Type, Tuple, List, Any, Dict
6-
from packaging import version
6+
import onnx
77
import torch
88
import diffusers
9-
import onnxruntime as ort
109
import optimum.onnxruntime
1110
from modules import shared
1211
from modules.paths import models_path
@@ -245,7 +244,7 @@ def run_olive(self, submodels: List[str], in_dir: os.PathLike, out_dir: os.PathL
245244
optimized_model_paths = {}
246245

247246
for submodel in submodels:
248-
log.info(f"\nProcessing {submodel}")
247+
print(f"\nProcessing {submodel}")
249248

250249
with open(os.path.join(sd_configs_path, "olive", 'sdxl' if self._is_sdxl else 'sd', f"{submodel}.json"), "r", encoding="utf-8") as config_file:
251250
olive_config: Dict[str, Dict[str, Dict]] = json.load(config_file)
@@ -282,7 +281,7 @@ def run_olive(self, submodels: List[str], in_dir: os.PathLike, out_dir: os.PathL
282281
**processor_final_pass_footprint["model_config"]["config"]
283282
).model_path
284283

285-
log.info(f"Olive: Successfully processed model: submodel={submodel}")
284+
print(f"Olive: Successfully processed model: submodel={submodel}")
286285

287286
for submodel in submodels:
288287
src_path = optimized_model_paths[submodel]

0 commit comments

Comments
 (0)