Vivien
commited on
Commit
·
9033a8d
1
Parent(s):
8d49b55
Change labels for the models
Browse files
app.py
CHANGED
|
@@ -5,7 +5,11 @@ import pandas as pd, numpy as np
|
|
| 5 |
from transformers import CLIPProcessor, CLIPModel
|
| 6 |
from st_clickable_images import clickable_images
|
| 7 |
|
| 8 |
-
MODEL_NAMES = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
@st.cache(allow_output_mutation=True)
|
|
@@ -165,10 +169,10 @@ def main():
|
|
| 165 |
corpus = st.radio("", ["Unsplash", "Movies"])
|
| 166 |
|
| 167 |
models_dict = {
|
| 168 |
-
"ViT-B/32 (
|
| 169 |
-
"ViT-B/16 (
|
| 170 |
-
#"ViT-L/14 (slow)": "large-patch14",
|
| 171 |
-
"ViT-L/14@336px (
|
| 172 |
}
|
| 173 |
|
| 174 |
if "Comparison" in mode:
|
|
|
|
| 5 |
from transformers import CLIPProcessor, CLIPModel
|
| 6 |
from st_clickable_images import clickable_images
|
| 7 |
|
| 8 |
+
MODEL_NAMES = [
|
| 9 |
+
"base-patch32",
|
| 10 |
+
"base-patch16",
|
| 11 |
+
"large-patch14-336",
|
| 12 |
+
] # , "large-patch14", "large-patch14-336"]
|
| 13 |
|
| 14 |
|
| 15 |
@st.cache(allow_output_mutation=True)
|
|
|
|
| 169 |
corpus = st.radio("", ["Unsplash", "Movies"])
|
| 170 |
|
| 171 |
models_dict = {
|
| 172 |
+
"ViT-B/32 (quicker)": "base-patch32",
|
| 173 |
+
"ViT-B/16 (average)": "base-patch16",
|
| 174 |
+
# "ViT-L/14 (slow)": "large-patch14",
|
| 175 |
+
"ViT-L/14@336px (slower)": "large-patch14-336",
|
| 176 |
}
|
| 177 |
|
| 178 |
if "Comparison" in mode:
|