-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload_models_cogsci.py
175 lines (150 loc) · 4.78 KB
/
upload_models_cogsci.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
from huggingface_hub import HfApi
api = HfApi()
# upload model files
# kinetics
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models/new/kinetics/kinetics.pth",
path_in_repo="kinetics_none.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_ssv2-50shot.pth",
path_in_repo="kinetics_ssv2-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_ssv2-10shot.pth",
path_in_repo="kinetics_ssv2-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_kinetics-50shot.pth",
path_in_repo="kinetics_kinetics-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_kinetics-10shot.pth",
path_in_repo="kinetics_kinetics-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
#######################################################################################
# kinetics-200h
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models/new/kinetics_128/kinetics_128.pth",
path_in_repo="kinetics-200h_none.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_128_ssv2-50shot.pth",
path_in_repo="kinetics-200h_ssv2-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_128_ssv2-10shot.pth",
path_in_repo="kinetics-200h_ssv2-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_128_kinetics-50shot.pth",
path_in_repo="kinetics-200h_kinetics-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/kinetics_128_kinetics-10shot.pth",
path_in_repo="kinetics-200h_kinetics-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
#######################################################################################
# say
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models/new/say/say.pth",
path_in_repo="say_none.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/say_ssv2-50shot.pth",
path_in_repo="say_ssv2-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/say_ssv2-10shot.pth",
path_in_repo="say_ssv2-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/say_kinetics-50shot.pth",
path_in_repo="say_kinetics-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/say_kinetics-10shot.pth",
path_in_repo="say_kinetics-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
#######################################################################################
# s
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models/new/s/s.pth",
path_in_repo="s_none.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/s_ssv2-50shot.pth",
path_in_repo="s_ssv2-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/s_ssv2-10shot.pth",
path_in_repo="s_ssv2-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/s_kinetics-50shot.pth",
path_in_repo="s_kinetics-50shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)
api.upload_file(
path_or_fileobj="/scratch/eo41/mae_st/models_finetuned/new/s_kinetics-10shot.pth",
path_in_repo="s_kinetics-10shot.pth",
repo_id="eminorhan/video-models",
repo_type="model",
token=True
)