Skip to content

Commit

Permalink
revert 1/2 min region size
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Sep 19, 2023
1 parent 6aedc39 commit ddf1aaf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions frigate/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ddf1aaf

Please sign in to comment.