mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Fix yaml bug and ensure embeddings progress doesn't show until all models are loaded (#14338)
This commit is contained in:
		
							parent
							
								
									72aa68cedc
								
							
						
					
					
						commit
						0ee32cf110
					
				@ -183,16 +183,11 @@ def update_yaml_from_url(file_path, url):
 | 
				
			|||||||
            update_yaml_file(file_path, key_path, new_value_list)
 | 
					            update_yaml_file(file_path, key_path, new_value_list)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            value = new_value_list[0]
 | 
					            value = new_value_list[0]
 | 
				
			||||||
            if "," in value:
 | 
					            try:
 | 
				
			||||||
                # Skip conversion if we're a mask or zone string
 | 
					                # no need to convert if we have a mask/zone string
 | 
				
			||||||
                update_yaml_file(file_path, key_path, value)
 | 
					                value = ast.literal_eval(value) if "," not in value else value
 | 
				
			||||||
            else:
 | 
					            except (ValueError, SyntaxError):
 | 
				
			||||||
                try:
 | 
					                pass
 | 
				
			||||||
                    value = ast.literal_eval(value)
 | 
					 | 
				
			||||||
                except (ValueError, SyntaxError):
 | 
					 | 
				
			||||||
                    pass
 | 
					 | 
				
			||||||
                update_yaml_file(file_path, key_path, value)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            update_yaml_file(file_path, key_path, value)
 | 
					            update_yaml_file(file_path, key_path, value)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -275,7 +275,7 @@ export default function Explore() {
 | 
				
			|||||||
              <TbExclamationCircle className="mb-3 size-10" />
 | 
					              <TbExclamationCircle className="mb-3 size-10" />
 | 
				
			||||||
              <div>Search Unavailable</div>
 | 
					              <div>Search Unavailable</div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            {embeddingsReindexing && (
 | 
					            {embeddingsReindexing && allModelsLoaded && (
 | 
				
			||||||
              <>
 | 
					              <>
 | 
				
			||||||
                <div className="text-center text-primary-variant">
 | 
					                <div className="text-center text-primary-variant">
 | 
				
			||||||
                  Search can be used after tracked object embeddings have
 | 
					                  Search can be used after tracked object embeddings have
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user