Skip to content

Commit

Permalink
Fix compatibility with timm latest release (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Nov 30, 2023
1 parent eb687cf commit bddeacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/intel/openvino/modeling_timm.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def from_pretrained(
pretrained_model_name_or_path: Union[str, os.PathLike],
**kwargs,
):
timm_config_dict, _ = load_model_config_from_hf(pretrained_model_name_or_path)
timm_config_dict = load_model_config_from_hf(pretrained_model_name_or_path)[0]

_, im_h, im_w = timm_config_dict.get("input_size", [3, 224, 224])

Expand Down

0 comments on commit bddeacd

Please sign in to comment.