mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Simplify half calculation
This commit is contained in:
parent
693e152a82
commit
50247d758f
@ -102,11 +102,7 @@ def get_min_region_size(model_config: ModelConfig) -> int:
|
||||
if half % 4 == 0:
|
||||
return half
|
||||
|
||||
while True:
|
||||
half += 1
|
||||
|
||||
if half % 4 == 0:
|
||||
return half
|
||||
return int((half + 3) / 4) * 4
|
||||
|
||||
|
||||
def create_tensor_input(frame, model_config: ModelConfig, region):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user