mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix: machine learning only take results with > 90% confidence (#1875)
This commit is contained in:
		| @@ -45,10 +45,7 @@ def run_engine(engine, path): | |||||||
|  |  | ||||||
|     for index, pred in enumerate(predictions): |     for index, pred in enumerate(predictions): | ||||||
|         tags = pred['label'].split(', ') |         tags = pred['label'].split(', ') | ||||||
|         if (index == 0): |         if (pred['score'] > 0.9): | ||||||
|             result = tags |  | ||||||
|         else: |  | ||||||
|             if (pred['score'] > 0.5): |  | ||||||
|             result = [*result, *tags] |             result = [*result, *tags] | ||||||
|  |  | ||||||
|     if (len(result) > 1): |     if (len(result) > 1): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user