From 26c328b1e4f63ab05bc89313530620b6283b7ff8 Mon Sep 17 00:00:00 2001 From: pangkaicheng <924366729@qq.com> Date: Tue, 12 Mar 2024 12:13:46 +0800 Subject: [PATCH] . --- app/service/outfit_matcher/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/outfit_matcher/service.py b/app/service/outfit_matcher/service.py index d94fbc7..ea94531 100644 --- a/app/service/outfit_matcher/service.py +++ b/app/service/outfit_matcher/service.py @@ -8,9 +8,9 @@ if __name__ == '__main__': with open("./test_param/recommendation_test.json", "r") as f: param = json.load(f) fashion_dataset = FashionDataset(param["database"]) + service = OutfitMaterTypeAware() for item in param["query"]: outfits = fashion_dataset.generate_outfit(item, param["topk"], param["max_outfits"]) - service = OutfitMaterTypeAware() scores = service.get_result(outfits) print(scores) # service.visualize(outfits, scores, param["topk"], best=True,