修改图片前缀配置文件(后台迁移到正式环境),修改模型配置

This commit is contained in:
2026-04-22 16:34:39 +08:00
parent ea1fc21dc4
commit 0f85d371ab
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ def main():
base_model = create_mobile_resnet50_embedding(embedding_dim=512, pretrained=True)
# model_path = "../model/DishClassification/grid_search_20251121_102723/model_s56.0_m0.4.pth"
# model_path = "../model/WholeIngredientRecognition/cosface_20251106_134718/best_cosface_model.pth"
model_path = "../model/WholeIngredientRecognition/grid_search_20260325_195636/best_model_s64.0_m0.45.pth"
model_path = "../model/WholeIngredientRecognition/grid_search_20260407_190824/best_model_s60.0_m0.45.pth"
# model_path = "../model/WholeIngredientRecognition/cosface_20260121_133207/best_cosface_model.pth"
# model_path = "../model/ProcessedIngredientRecognition/embedding_20251029_173607/best_embedding_model.pth"
@@ -96,7 +96,7 @@ def main():
# 保存模型,一定不要乱改,防止模型覆盖!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# output_path = "../model/DishClassification/grid_search_20251121_102723/best_embedding_model_mobile.pt"
#原本路径
output_path = "../model/WholeIngredientRecognition/grid_search_20260325_195636/best_embedding_model_mobile.pt"
output_path = "../model/WholeIngredientRecognition/grid_search_20260407_190824/best_embedding_model_mobile.pt"
#新路径
# output_path = "../model/WholeIngredientRecognition/cosface_20260121_133207/best_cosface_model_mobile.pt"
# output_path = "../model/WholeIngredientRecognition/cosface_20251106_134718/best_embedding_model_mobile.pt"