Skip to content

Commit

Permalink
Update optimum/exporters/openvino/model_configs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil authored Dec 17, 2024
1 parent 0850f4c commit adfdc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/openvino/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,9 +1806,9 @@ def __init__(
num_channels: int = DEFAULT_DUMMY_SHAPES["num_channels"],
width: int = DEFAULT_DUMMY_SHAPES["width"] // 4,
height: int = DEFAULT_DUMMY_SHAPES["height"] // 4,
# Reduce img shape by 4 for FLUX to reduce memory usage on conversion
**kwargs,
):
# Reduce img shape by 4 for FLUX to reduce memory usage on conversion
super().__init__(task, normalized_config, batch_size, num_channels, width, height, **kwargs)
if getattr(normalized_config, "in_channels", None):
self.num_channels = normalized_config.in_channels // 4
Expand Down

0 comments on commit adfdc68

Please sign in to comment.