Home
last modified time | relevance | path

Searched refs:resize_to_max_canvas (Results 1 – 5 of 5) sorted by relevance

/aosp_15_r20/external/executorch/examples/models/llama3_2_vision/preprocess/
H A Dtest_preprocess.py45 def initialize_models(resize_to_max_canvas: bool) -> Dict[str, Any]:
46 config = PreprocessConfig(resize_to_max_canvas=resize_to_max_canvas)
55 resize_to_max_canvas=config.resize_to_max_canvas,
132 models_no_resize = initialize_models(resize_to_max_canvas=False)
133 models_resize = initialize_models(resize_to_max_canvas=True)
172 max_size = None if config.resize_to_max_canvas else config.tile_size
178 resize_to_max_canvas=config.resize_to_max_canvas,
195 resize_to_max_canvas: bool,
201 models = self.models_resize if resize_to_max_canvas else self.models_no_resize
H A Dpreprocess_test.cpp56 bool resize_to_max_canvas, in test_get_canvas_best_fit() argument
59 image_size, possible_resolutions, resize_to_max_canvas); in test_get_canvas_best_fit()
H A Dpreprocess.cpp42 bool resize_to_max_canvas) { in get_canvas_best_fit() argument
63 if (resize_to_max_canvas) { in get_canvas_best_fit()
H A Dpreprocess.h33 bool resize_to_max_canvas);
H A Dmodel.py30 resize_to_max_canvas: bool = False variable in PreprocessConfig