Skip to content

Commit ffdc1c2

Browse files
committed
Fix type error for path usage
1 parent d7035b5 commit ffdc1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/exporters/openvino/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def deduce_diffusers_dtype(model_name_or_path, **loading_kwargs):
241241
else:
242242
from diffusers import DiffusionPipeline
243243

244-
path = DiffusionPipeline.download(model_name_or_path, **loading_kwargs)
244+
path = Path(DiffusionPipeline.download(model_name_or_path, **loading_kwargs))
245245
model_part_name = None
246246
if (path / "transformer").is_dir():
247247
model_part_name = "transformer"

0 commit comments

Comments
 (0)