1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix: machine learning only take results with > 90% confidence (#1875)

This commit is contained in:
Zack Pollard 2023-02-26 04:02:35 +00:00 committed by GitHub
parent 6c7679714b
commit 3d468c369c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,10 +45,7 @@ def run_engine(engine, path):
for index, pred in enumerate(predictions):
tags = pred['label'].split(', ')
if (index == 0):
result = tags
else:
if (pred['score'] > 0.5):
if (pred['score'] > 0.9):
result = [*result, *tags]
if (len(result) > 1):