mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
Fix
This commit is contained in:
parent
585a2b2f93
commit
7fc0a09cd2
@ -51,7 +51,7 @@ async def register_face(request: Request, name: str, file: UploadFile):
|
|||||||
def train_face(name: str, body: dict = None):
|
def train_face(name: str, body: dict = None):
|
||||||
json: dict[str, any] = body or {}
|
json: dict[str, any] = body or {}
|
||||||
training_file = os.path.join(
|
training_file = os.path.join(
|
||||||
FACE_DIR, f"train/{sanitize_filename(json.get("training_file", ""))}"
|
FACE_DIR, f"train/{sanitize_filename(json.get('training_file', ''))}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not training_file or not os.path.isfile(training_file):
|
if not training_file or not os.path.isfile(training_file):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user