Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jan 31, 2025
1 parent bceb371 commit c5202f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/intel/openvino/modeling_visual_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,8 @@ def preprocess_inputs(

if (
getattr(processor, "patch_size", None) is None
and hasattr(config, "vision_config")
and hasattr(config.vision_config, "patch_size")
and getattr(config, "vision_config", None) is not None
and getattr(config.vision_config, "patch_size", None) is not None
):
processor.patch_size = config.vision_config.patch_size

Expand Down

0 comments on commit c5202f0

Please sign in to comment.