Spaces:
Sleeping
Sleeping
Update demo/app.py
Browse files- 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)
|