mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	revert 1/2 min region size (#7883)
This commit is contained in:
		
							parent
							
								
									e5664826b1
								
							
						
					
					
						commit
						46412e99d9
					
				@ -98,13 +98,8 @@ def filtered(obj, objects_to_track, object_filters):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_min_region_size(model_config: ModelConfig) -> int:
 | 
					def get_min_region_size(model_config: ModelConfig) -> int:
 | 
				
			||||||
    """Get the min region size and ensure it is divisible by 4."""
 | 
					    """Get the min region size."""
 | 
				
			||||||
    half = int(max(model_config.height, model_config.width) / 2)
 | 
					    return max(model_config.height, model_config.width)
 | 
				
			||||||
 | 
					 | 
				
			||||||
    if half % 4 == 0:
 | 
					 | 
				
			||||||
        return half
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return int((half + 3) / 4) * 4
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def create_tensor_input(frame, model_config: ModelConfig, region):
 | 
					def create_tensor_input(frame, model_config: ModelConfig, region):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user