Skip to content

Commit

Permalink
Fix type error for path usage (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Dec 5, 2024
1 parent d7035b5 commit 3ba51f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/openvino/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def deduce_diffusers_dtype(model_name_or_path, **loading_kwargs):
else:
from diffusers import DiffusionPipeline

path = DiffusionPipeline.download(model_name_or_path, **loading_kwargs)
path = Path(DiffusionPipeline.download(model_name_or_path, **loading_kwargs))
model_part_name = None
if (path / "transformer").is_dir():
model_part_name = "transformer"
Expand Down

0 comments on commit 3ba51f1

Please sign in to comment.