taesiri commited on
Commit
339abc5
1 Parent(s): b35ee4e

update the UI

Browse files
Files changed (1) hide show
  1. app.py +36 -36
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
- # # 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
 
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