修改参数。
This commit is contained in:
@@ -65,7 +65,7 @@ class EmbeddingFoodClassifierApp:
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
# model_path = "../model/embedding_20251011_133653/best_embedding_model.pth"
|
||||
# model_path = os.path.join(BASE_DIR, "../model/embedding_20251011_133653/best_embedding_model.pth")
|
||||
model_path = os.path.join(BASE_DIR, "../model/ProcessedIngredientRecognition/embedding_20251029_100204/best_embedding_model.pth")
|
||||
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/embedding_20251024_091151/best_embedding_model.pth")
|
||||
# model_path = os.path.join(BASE_DIR, "../model/DishClassification/embedding_20251022_093635/best_embedding_model.pth")
|
||||
|
||||
@@ -73,7 +73,7 @@ class EmbeddingFoodClassifierApp:
|
||||
# index_dir = "../faiss_vector_db/faiss_index"
|
||||
# index_dir = os.path.join(BASE_DIR, "../faiss_vector_db/faiss_index")
|
||||
index_dir = os.path.join(BASE_DIR, "../faiss_vector_db/ProcessedIngredientRecognition/faiss_index")
|
||||
index_dir = os.path.join(BASE_DIR, "../faiss_vector_db/WholeIngredientRecognition/faiss_index")
|
||||
# index_dir = os.path.join(BASE_DIR, "../faiss_vector_db/WholeIngredientRecognition/faiss_index")
|
||||
# index_dir = os.path.join(BASE_DIR, "../faiss_vector_db/DishClassification/faiss_index")
|
||||
|
||||
if os.path.exists(model_path) and os.path.exists(index_dir):
|
||||
|
||||
Reference in New Issue
Block a user