Simplify half calculation

This commit is contained in:
Nicolas Mowen 2023-07-05 14:24:21 -06:00 committed by GitHub
parent 693e152a82
commit 50247d758f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,11 +102,7 @@ def get_min_region_size(model_config: ModelConfig) -> int:
if half % 4 == 0: if half % 4 == 0:
return half return half
while True: return int((half + 3) / 4) * 4
half += 1
if half % 4 == 0:
return half
def create_tensor_input(frame, model_config: ModelConfig, region): def create_tensor_input(frame, model_config: ModelConfig, region):