mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Add support for Frigate+ input data type (#19799)
This commit is contained in:
		
							parent
							
								
									667c302a7d
								
							
						
					
					
						commit
						281c461647
					
				| @ -158,6 +158,9 @@ class ModelConfig(BaseModel): | |||||||
|         self.input_pixel_format = model_info["pixelFormat"] |         self.input_pixel_format = model_info["pixelFormat"] | ||||||
|         self.model_type = model_info["type"] |         self.model_type = model_info["type"] | ||||||
| 
 | 
 | ||||||
|  |         if model_info.get("inputDataType"): | ||||||
|  |             self.input_dtype = model_info["inputDataType"] | ||||||
|  | 
 | ||||||
|         # generate list of attribute labels |         # generate list of attribute labels | ||||||
|         self.attributes_map = { |         self.attributes_map = { | ||||||
|             **model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP), |             **model_info.get("attributes", DEFAULT_ATTRIBUTE_LABEL_MAP), | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user