Skip to content

Commit

Permalink
Reduce img size in dummy_inputs for FLUX (#1070)
Browse files Browse the repository at this point in the history
* Reduce img size in dummy_inputs for FLUX

* change dims in function signature

* Update optimum/exporters/openvino/model_configs.py

---------

Co-authored-by: Ilyas Moutawwakil <[email protected]>
  • Loading branch information
mvafin and IlyasMoutawwakil authored Dec 17, 2024
1 parent f030583 commit 3c229fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions optimum/exporters/openvino/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,9 @@ def __init__(
normalized_config: NormalizedVisionConfig,
batch_size: int = DEFAULT_DUMMY_SHAPES["batch_size"],
num_channels: int = DEFAULT_DUMMY_SHAPES["num_channels"],
width: int = DEFAULT_DUMMY_SHAPES["width"],
height: int = DEFAULT_DUMMY_SHAPES["height"],
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,
):
super().__init__(task, normalized_config, batch_size, num_channels, width, height, **kwargs)
Expand Down

0 comments on commit 3c229fc

Please sign in to comment.