RyanWW commited on
Commit
4bf49fb
·
1 Parent(s): 2e2565f
Files changed (2) hide show
  1. .gitignore +221 -0
  2. upload.sh +35 -0
.gitignore ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ videos
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ #Pipfile.lock
98
+
99
+ # poetry
100
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
101
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
102
+ # commonly ignored for libraries.
103
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
104
+ #poetry.lock
105
+
106
+ # pdm
107
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
108
+ #pdm.lock
109
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
110
+ # in version control.
111
+ # https://pdm.fming.dev/#use-with-ide
112
+ .pdm.toml
113
+
114
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115
+ __pypackages__/
116
+
117
+ # Celery stuff
118
+ celerybeat-schedule
119
+ celerybeat.pid
120
+
121
+ # SageMath parsed files
122
+ *.sage.py
123
+
124
+ # Environments
125
+ .env
126
+ .venv
127
+ env/
128
+ venv/
129
+ ENV/
130
+ env.bak/
131
+ venv.bak/
132
+
133
+ # Spyder project settings
134
+ .spyderproject
135
+ .spyproject
136
+
137
+ # Rope project settings
138
+ .ropeproject
139
+
140
+ # mkdocs documentation
141
+ /site
142
+
143
+ # mypy
144
+ .mypy_cache/
145
+ .dmypy.json
146
+ dmypy.json
147
+
148
+ # Pyre type checker
149
+ .pyre/
150
+
151
+ # pytype static type analyzer
152
+ .pytype/
153
+
154
+ # Cython debug symbols
155
+ cython_debug/
156
+
157
+ # PyCharm
158
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159
+ # be added to the global gitignore or merged into this project gitignore. For a PyCharm
160
+ # project, it is recommended to use the .idea directory.
161
+ .idea/
162
+
163
+ # Video files
164
+ *.mp4
165
+ *.avi
166
+ *.mov
167
+ *.mkv
168
+ *.flv
169
+ *.wmv
170
+ *.webm
171
+ *.m4v
172
+ *.3gp
173
+ *.3g2
174
+ *.mpg
175
+ *.mpeg
176
+ *.m2v
177
+ *.m4v
178
+ *.svi
179
+ *.3gpp
180
+ *.3gpp2
181
+ *.mxf
182
+ *.roq
183
+ *.nsv
184
+ *.f4v
185
+ *.f4p
186
+ *.f4a
187
+ *.f4b
188
+
189
+ # Large data files (common in ML/CV projects)
190
+ *.h5
191
+ *.hdf5
192
+ *.pkl
193
+ *.pickle
194
+ *.npy
195
+ *.npz
196
+
197
+ # Model checkpoints and weights
198
+ *.pth
199
+ *.pt
200
+ *.ckpt
201
+ *.weights
202
+ *.model
203
+
204
+ # Dataset directories (uncomment if needed)
205
+ # datasets/
206
+ # data/
207
+
208
+ # IDE and editor files
209
+ .vscode/
210
+ *.swp
211
+ *.swo
212
+ *~
213
+
214
+ # OS generated files
215
+ .DS_Store
216
+ .DS_Store?
217
+ ._*
218
+ .Spotlight-V100
219
+ .Trashes
220
+ ehthumbs.db
221
+ Thumbs.db
upload.sh ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+ SRC_DIR="./videos/frames"
5
+ OUT_DIR="./frames_upload_chunks"
6
+ CHUNK_SIZE=50 # 每包打 50 个文件夹
7
+ PREFIX="frames_chunk"
8
+
9
+ mkdir -p "$OUT_DIR"
10
+ all_folders=($(ls "$SRC_DIR" | sort))
11
+
12
+ total=${#all_folders[@]}
13
+ chunk=0
14
+
15
+ for ((i=0; i<total; i+=CHUNK_SIZE)); do
16
+ chunk_dir=$(printf "%s/%s_%03d" "$OUT_DIR" "$PREFIX" "$chunk")
17
+ mkdir -p "$chunk_dir"
18
+
19
+ for ((j=i; j<i+CHUNK_SIZE && j<total; j++)); do
20
+ name=${all_folders[$j]}
21
+ echo "Copying $name to $chunk_dir"
22
+ cp -r "$SRC_DIR/$name" "$chunk_dir/"
23
+ done
24
+
25
+ tar_path="$OUT_DIR/${PREFIX}_${chunk}.tar"
26
+ echo "Creating tar: $tar_path"
27
+ tar -cf "$tar_path" -C "$chunk_dir" .
28
+
29
+ rm -r "$chunk_dir"
30
+ echo "Chunk $chunk done."
31
+ ((chunk++))
32
+ done
33
+
34
+ echo "✅ All chunks created in $OUT_DIR/"
35
+