Spaces:
Build error
Build error
leopoldmaillard
commited on
Commit
•
44485b6
1
Parent(s):
a34206d
update carousel
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def retrieve(query_image_name, embeddings_type, metric_type):
|
|
60 |
input_button = gr.inputs.Dropdown(query_images, label='Choice of the query image')
|
61 |
embeddings_selection = gr.inputs.Radio(['MobileNetV2', 'BoVW', 'Baseline'], label='Embeddings')
|
62 |
metric_selection = gr.inputs.Radio(['Euclidean', 'Cosine'], label='Similarity Metric')
|
63 |
-
retrieved_images = gr.outputs.Carousel(["image"]
|
64 |
|
65 |
description = "This is a demo of the content-based image retrieval system developed as part of the IR course project, 2022. The indexed dataset is [INRIA Holidays](https://lear.inrialpes.fr/~jegou/data.php). \n\nSeveral image embeddings can be used :\n \n-**MobileNetV2** : feature extraction is performed using a MobileNet architecture trained on ImageNet.\n\n-**BoVW (Bag of Visual Words)** : embedding is the BoVW histogram using color histogram as a descriptor.\n\n-**Baseline** : basic descriptor that uses pixel values of the downsized images."
|
66 |
|
@@ -70,4 +70,4 @@ iface = gr.Interface(fn=retrieve,
|
|
70 |
title='Image Retrieval on INRIA Holidays',
|
71 |
article=description)
|
72 |
|
73 |
-
iface.launch()
|
|
|
60 |
input_button = gr.inputs.Dropdown(query_images, label='Choice of the query image')
|
61 |
embeddings_selection = gr.inputs.Radio(['MobileNetV2', 'BoVW', 'Baseline'], label='Embeddings')
|
62 |
metric_selection = gr.inputs.Radio(['Euclidean', 'Cosine'], label='Similarity Metric')
|
63 |
+
retrieved_images = gr.outputs.Carousel(["image"], label='Retrieved images')
|
64 |
|
65 |
description = "This is a demo of the content-based image retrieval system developed as part of the IR course project, 2022. The indexed dataset is [INRIA Holidays](https://lear.inrialpes.fr/~jegou/data.php). \n\nSeveral image embeddings can be used :\n \n-**MobileNetV2** : feature extraction is performed using a MobileNet architecture trained on ImageNet.\n\n-**BoVW (Bag of Visual Words)** : embedding is the BoVW histogram using color histogram as a descriptor.\n\n-**Baseline** : basic descriptor that uses pixel values of the downsized images."
|
66 |
|
|
|
70 |
title='Image Retrieval on INRIA Holidays',
|
71 |
article=description)
|
72 |
|
73 |
+
iface.launch()
|