muichi-mon commited on
Commit
6f4d9eb
·
verified ·
1 Parent(s): 7931128

Update demo/app.py

Browse files
Files changed (1) hide show
  1. demo/app.py +1 -1
demo/app.py CHANGED
@@ -66,7 +66,7 @@ wrapper = model_config["wrapper_class"](model=model, processor=processor)
66
  # Read image index: candidate images
67
  index = faiss.read_index(config["INDEX_PATH"])
68
  with open(os.path.join(os.path.dirname(config["INDEX_PATH"]), "image_paths.txt"), "r") as f:
69
- candidate_image_paths = [line.strip() for line in f.readlines()]
70
 
71
  # Initialize relevance feedback model
72
  captioning_model_config = load_yaml(CAPTIONING_MODEL_CONFIG_PATH)
 
66
  # Read image index: candidate images
67
  index = faiss.read_index(config["INDEX_PATH"])
68
  with open(os.path.join(os.path.dirname(config["INDEX_PATH"]), "image_paths.txt"), "r") as f:
69
+ candidate_image_paths = [line.strip().replace('\\', '/') for line in f.readlines()]
70
 
71
  # Initialize relevance feedback model
72
  captioning_model_config = load_yaml(CAPTIONING_MODEL_CONFIG_PATH)