update the UI
Browse files
app.py
CHANGED
@@ -19,42 +19,42 @@ csv.field_size_limit(sys.maxsize)
|
|
19 |
|
20 |
concat = lambda x: np.concatenate(x, axis=0)
|
21 |
|
22 |
-
#
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
#
|
31 |
-
#
|
32 |
-
|
33 |
-
#
|
34 |
-
|
35 |
-
|
36 |
-
#
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
#
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
#
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
|
59 |
|
60 |
# Caluclate Accuracy
|
|
|
19 |
|
20 |
concat = lambda x: np.concatenate(x, axis=0)
|
21 |
|
22 |
+
# Embeddings
|
23 |
+
gdown.cached_download(
|
24 |
+
url="https://static.taesiri.com/chm-corr/embeddings.pickle",
|
25 |
+
path="./embeddings.pickle",
|
26 |
+
quiet=False,
|
27 |
+
md5="002b2a7f5c80d910b9cc740c2265f058",
|
28 |
+
)
|
29 |
+
|
30 |
+
# embeddings
|
31 |
+
# gdown.download(id="116CiA_cXciGSl72tbAUDoN-f1B9Frp89")
|
32 |
+
|
33 |
+
# labels
|
34 |
+
gdown.download(id="1SDtq6ap7LPPpYfLbAxaMGGmj0EAV_m_e")
|
35 |
+
|
36 |
+
# CUB training set
|
37 |
+
gdown.cached_download(
|
38 |
+
url="https://static.taesiri.com/chm-corr/CUB_train.zip",
|
39 |
+
path="./CUB_train.zip",
|
40 |
+
quiet=False,
|
41 |
+
md5="1bd99e73b2fea8e4c2ebcb0e7722f1b1",
|
42 |
+
)
|
43 |
+
|
44 |
+
# EXTRACT training set
|
45 |
+
torchvision.datasets.utils.extract_archive(
|
46 |
+
from_path="CUB_train.zip",
|
47 |
+
to_path="data/",
|
48 |
+
remove_finished=False,
|
49 |
+
)
|
50 |
+
|
51 |
+
# CHM Weights
|
52 |
+
gdown.cached_download(
|
53 |
+
url="https://static.taesiri.com/chm-corr/pas_psi.pt",
|
54 |
+
path="pas_psi.pt",
|
55 |
+
quiet=False,
|
56 |
+
md5="6b7b4d7bad7f89600fac340d6aa7708b",
|
57 |
+
)
|
58 |
|
59 |
|
60 |
# Caluclate Accuracy
|