mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +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)
|
||||
else:
|
||||
value = new_value_list[0]
|
||||
if "," in value:
|
||||
# Skip conversion if we're a mask or zone string
|
||||
update_yaml_file(file_path, key_path, value)
|
||||
else:
|
||||
try:
|
||||
value = ast.literal_eval(value)
|
||||
except (ValueError, SyntaxError):
|
||||
pass
|
||||
update_yaml_file(file_path, key_path, value)
|
||||
|
||||
try:
|
||||
# no need to convert if we have a mask/zone string
|
||||
value = ast.literal_eval(value) if "," not in value else value
|
||||
except (ValueError, SyntaxError):
|
||||
pass
|
||||
update_yaml_file(file_path, key_path, value)
|
||||
|
||||
|
||||
|
@ -275,7 +275,7 @@ export default function Explore() {
|
||||
<TbExclamationCircle className="mb-3 size-10" />
|
||||
<div>Search Unavailable</div>
|
||||
</div>
|
||||
{embeddingsReindexing && (
|
||||
{embeddingsReindexing && allModelsLoaded && (
|
||||
<>
|
||||
<div className="text-center text-primary-variant">
|
||||
Search can be used after tracked object embeddings have
|
||||
|
Loading…
Reference in New Issue
Block a user