修改配置

This commit is contained in:
2025-11-13 18:03:17 +08:00
parent 3ae8c677ff
commit 5279700e1c
3 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -146,7 +146,7 @@ class FAISSIndexBuilder:
for image_file in image_files:
# 可以不添加那些增强的图片
if image_file.startswith("img"):
if image_file.lower().startswith("img"):
image_path = os.path.join(class_dir, image_file)
image_paths.append(image_path)
class_names.append(class_name)
@@ -497,8 +497,8 @@ def main():
# 配置参数
# MODEL_PATH = "../model/embedding_20251011_133653/best_embedding_model.pth"
# MODEL_PATH = "../model/ProcessedIngredientRecognition/embedding_20251103_172012/best_embedding_model.pth"
MODEL_PATH = "../model/WholeIngredientRecognition/cosface_20251113_160103/best_cosface_model.pth"
# MODEL_PATH = "../model/WholeIngredientRecognition/grid_search_20251113_095659/model_s68.0_m0.4.pth"
# MODEL_PATH = "../model/WholeIngredientRecognition/cosface_20251113_160103/best_cosface_model.pth"
MODEL_PATH = "../model/WholeIngredientRecognition/grid_search_20251113_095659/model_s68.0_m0.4.pth"
# MODEL_PATH = "../model/DishClassification/cosface_20251105_200551/best_embedding_model.pth"
# MODEL_PATH = "../model/DishClassification/cosface_20251111_153649/best_cosface_model.pth"
# TRAIN_DIR = "../dataset/ProcessedIngredientRecognition/train"