修改模型

This commit is contained in:
马增飞
2025-11-10 18:52:17 +08:00
parent 43c1512446
commit 7df01928be
4 changed files with 4 additions and 4 deletions
Binary file not shown.
+1 -1
View File
@@ -40,5 +40,5 @@
}, },
"embedding_dim": 512, "embedding_dim": 512,
"total_images": 550, "total_images": 550,
"build_time": "2025-10-30T14:41:07.359332" "build_time": "2025-11-06T14:40:27.391796"
} }
File diff suppressed because one or more lines are too long
@@ -96,12 +96,12 @@ object FoodModule {
nameScoreList.add(IdNameScore(id = it.id, name = box.get(it.id).name?:"", score = it.score)) nameScoreList.add(IdNameScore(id = it.id, name = box.get(it.id).name?:"", score = it.score))
} }
Timber.tag("FoodModule").d("queryFood数据:${nameScoreList.toJsonString()}") Timber.tag("FoodModule").d("queryFood数据:${nameScoreList.toJsonString()}")
idScoreList.filter { it.score < 0.10 }.forEach { idScoreList.filter { it.score < 0.07 }.forEach {
val food = box.get(it.id) val food = box.get(it.id)
//FoodQueryResult(id = it.id, name = food.name, foodIdx = food.foodIdx, score = it.score) //FoodQueryResult(id = it.id, name = food.name, foodIdx = food.foodIdx, score = it.score)
food.name?.let { key -> food.name?.let { key ->
val count = map[key] ?: 0 val count = map[key] ?: 0
map.put(key, count + 1) map[key] = count + 1
} }
} }
val list = map.entries.sortedByDescending { it.value }.map { it.key } val list = map.entries.sortedByDescending { it.value }.map { it.key }