From 0f85d371abc1d5f7e81245586f070c8ff93322ea Mon Sep 17 00:00:00 2001 From: zhangpu <1250681871@qq.com> Date: Wed, 22 Apr 2026 16:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC=88=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E8=BF=81=E7=A7=BB=E5=88=B0=E6=AD=A3=E5=BC=8F=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=EF=BC=89=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classifier/embedding_food_classifier_app.py | 2 +- data_management/config.py | 2 +- faiss_vector_db/build_faiss_index.py | 2 +- toAndroid/toAndroidEmbedding.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/classifier/embedding_food_classifier_app.py b/classifier/embedding_food_classifier_app.py index 5f289a4..01f9d0b 100644 --- a/classifier/embedding_food_classifier_app.py +++ b/classifier/embedding_food_classifier_app.py @@ -71,7 +71,7 @@ class EmbeddingFoodClassifierApp: # model_path = os.path.join(BASE_DIR, "../model/ProcessedIngredientRecognition/embedding_20251029_170904/best_embedding_model.pth") # model_path = os.path.join(BASE_DIR, "../model/WholeIngredientRecognition/cosface_20251106_134718/best_cosface_model.pth") # model_path = os.path.join(BASE_DIR, "../model/WholeIngredientRecognition/grid_search_20251204_140816/model_s64.0_m0.4.pth") - model_path = os.path.join(BASE_DIR, "../model/WholeIngredientRecognition/grid_search_20260325_195636/best_model_s64.0_m0.45.pth") + model_path = os.path.join(BASE_DIR, "../model/WholeIngredientRecognition/grid_search_20260407_190824/best_model_s60.0_m0.45.pth") # model_path = os.path.join(BASE_DIR, "../model/DishClassification/cosface_20251111_153649/best_cosface_model.pth") # FAISS索引目录 diff --git a/data_management/config.py b/data_management/config.py index 8d92975..e3da02a 100644 --- a/data_management/config.py +++ b/data_management/config.py @@ -21,7 +21,7 @@ TABLE_MAPPING = { } # ======================== 图片URL前缀 ======================== -IMAGE_URL_PREFIX = 'https://dev.yixiong-tech.com:8082' +IMAGE_URL_PREFIX = 'https://file.dm.yixiong-tech.com:8443' # ======================== SQLite下载历史数据库 ======================== # 存储在项目的data_management目录下 diff --git a/faiss_vector_db/build_faiss_index.py b/faiss_vector_db/build_faiss_index.py index 5978cf9..bc322ae 100644 --- a/faiss_vector_db/build_faiss_index.py +++ b/faiss_vector_db/build_faiss_index.py @@ -652,7 +652,7 @@ def main(): #grid_search最佳模型 s=68, m=0.42 1.22 # MODEL_PATH = "../model/WholeIngredientRecognition/grid_search_20260122_112545/best_model_s68.0_m0.42.pth" # MODEL_PATH = "../model/WholeIngredientRecognition/grid_search_20260302_092600/best_model_s64.0_m0.4.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/DishClassification/grid_search_20251121_102723/model_s56.0_m0.4.pth" # MODEL_PATH = "../model/DishClassification/cosface_20251111_153649/best_cosface_model.pth" # TRAIN_DIR = "../dataset/ProcessedIngredientRecognition/train" diff --git a/toAndroid/toAndroidEmbedding.py b/toAndroid/toAndroidEmbedding.py index 0258b7a..05fca69 100644 --- a/toAndroid/toAndroidEmbedding.py +++ b/toAndroid/toAndroidEmbedding.py @@ -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"