Skip to content

Commit

Permalink
fix diffusers version info in IR (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Nov 1, 2024
1 parent 46e7781 commit 74d2161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimum/exporters/openvino/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
get_diffusion_models_for_export,
)
from optimum.intel.utils.import_utils import (
_diffusers_version,
_nncf_version,
_open_clip_version,
_optimum_intel_version,
Expand Down Expand Up @@ -806,7 +807,7 @@ def _add_version_info_to_model(model: Model, library_name: Optional[str] = None)

model.set_rt_info(sentence_transformers.__version__, ["optimum", "sentence_transformers_version"])
if library_name == "diffusers":
model.set_rt_info(_optimum_version, ["optimum", "diffusers_version"])
model.set_rt_info(_diffusers_version, ["optimum", "diffusers_version"])
elif library_name == "timm":
model.set_rt_info(_timm_version, ["optimum", "timm_version"])
elif library_name == "open_clip":
Expand Down

0 comments on commit 74d2161

Please sign in to comment.