diff --git a/frigate/video.py b/frigate/video.py index f2a49fee3d..71fa86e536 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -98,13 +98,8 @@ def filtered(obj, objects_to_track, object_filters): def get_min_region_size(model_config: ModelConfig) -> int: - """Get the min region size and ensure it is divisible by 4.""" - half = int(max(model_config.height, model_config.width) / 2) - - if half % 4 == 0: - return half - - return int((half + 3) / 4) * 4 + """Get the min region size.""" + return max(model_config.height, model_config.width) def create_tensor_input(frame, model_config: ModelConfig, region):