mzhobro commited on
Commit
da74e22
·
verified ·
1 Parent(s): 68d2e16

Upload folder using huggingface_hub

Browse files
Files changed (42) hide show
  1. .gitattributes +10 -0
  2. 2D_Segmentation.zip +3 -0
  3. Allocentric_Camera_Parameters.zip +3 -0
  4. Allocentric_RGB_Videos/21218078.zip +3 -0
  5. Allocentric_RGB_Videos/22070938.zip +3 -0
  6. Allocentric_RGB_Videos/22139905.zip +3 -0
  7. Allocentric_RGB_Videos/22139906.zip.00.part +3 -0
  8. Allocentric_RGB_Videos/22139906.zip.01.part +3 -0
  9. Allocentric_RGB_Videos/22139908.zip +3 -0
  10. Allocentric_RGB_Videos/22139909.zip +3 -0
  11. Allocentric_RGB_Videos/22139910.zip +3 -0
  12. Allocentric_RGB_Videos/22139911.zip +3 -0
  13. Allocentric_RGB_Videos/22139913.zip +3 -0
  14. Allocentric_RGB_Videos/22139914.zip.00.part +3 -0
  15. Allocentric_RGB_Videos/22139914.zip.01.part +3 -0
  16. Allocentric_RGB_Videos/22139916.zip +3 -0
  17. Allocentric_RGB_Videos/22139946.zip +3 -0
  18. Egocentric_Camera_Parameters.zip +3 -0
  19. Egocentric_Depth_Videos.zip.00.part +3 -0
  20. Egocentric_Depth_Videos.zip.01.part +3 -0
  21. Egocentric_RGB_Videos.zip +3 -0
  22. Hand_Poses.zip +3 -0
  23. MANIFEST.txt +38 -0
  24. Marker_Removed_Allocentric_RGB_Videos/21218078.zip +3 -0
  25. Marker_Removed_Allocentric_RGB_Videos/22070938.zip +3 -0
  26. Marker_Removed_Allocentric_RGB_Videos/22139905.zip +3 -0
  27. Marker_Removed_Allocentric_RGB_Videos/22139906.zip.00.part +3 -0
  28. Marker_Removed_Allocentric_RGB_Videos/22139906.zip.01.part +3 -0
  29. Marker_Removed_Allocentric_RGB_Videos/22139908.zip +3 -0
  30. Marker_Removed_Allocentric_RGB_Videos/22139909.zip +3 -0
  31. Marker_Removed_Allocentric_RGB_Videos/22139910.zip +3 -0
  32. Marker_Removed_Allocentric_RGB_Videos/22139911.zip +3 -0
  33. Marker_Removed_Allocentric_RGB_Videos/22139913.zip +3 -0
  34. Marker_Removed_Allocentric_RGB_Videos/22139914.zip.00.part +3 -0
  35. Marker_Removed_Allocentric_RGB_Videos/22139914.zip.01.part +3 -0
  36. Marker_Removed_Allocentric_RGB_Videos/22139916.zip +3 -0
  37. Marker_Removed_Allocentric_RGB_Videos/22139946.zip +3 -0
  38. Object_Models.zip +3 -0
  39. Object_Poses.zip +3 -0
  40. README.md +35 -0
  41. prepare_upload.sh +62 -0
  42. reassemble.sh +70 -0
.gitattributes CHANGED
@@ -58,3 +58,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ Allocentric_RGB_Videos/22139906.zip.00.part filter=lfs diff=lfs merge=lfs -text
62
+ Allocentric_RGB_Videos/22139906.zip.01.part filter=lfs diff=lfs merge=lfs -text
63
+ Allocentric_RGB_Videos/22139914.zip.00.part filter=lfs diff=lfs merge=lfs -text
64
+ Allocentric_RGB_Videos/22139914.zip.01.part filter=lfs diff=lfs merge=lfs -text
65
+ Egocentric_Depth_Videos.zip.00.part filter=lfs diff=lfs merge=lfs -text
66
+ Egocentric_Depth_Videos.zip.01.part filter=lfs diff=lfs merge=lfs -text
67
+ Marker_Removed_Allocentric_RGB_Videos/22139906.zip.00.part filter=lfs diff=lfs merge=lfs -text
68
+ Marker_Removed_Allocentric_RGB_Videos/22139906.zip.01.part filter=lfs diff=lfs merge=lfs -text
69
+ Marker_Removed_Allocentric_RGB_Videos/22139914.zip.00.part filter=lfs diff=lfs merge=lfs -text
70
+ Marker_Removed_Allocentric_RGB_Videos/22139914.zip.01.part filter=lfs diff=lfs merge=lfs -text
2D_Segmentation.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:216fb8eaa5c063a4b70cdd8fdca4b4ae76bf7cf8b5268b033969a25dc5e8f0f4
3
+ size 2591020290
Allocentric_Camera_Parameters.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da1d03f17edecaafa4c3e6c2ce6519798e40840b7d0dff1244cebf9cabe6baa4
3
+ size 7960127
Allocentric_RGB_Videos/21218078.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8ef4f1d3dcb58f44f6bccb3257627a516d0fe0e83f23bb70bdb0cfd4342f901
3
+ size 17039802110
Allocentric_RGB_Videos/22070938.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60289b8ac779d94a763fecf060c148689f28f1d422a69428e12dbfa26bd3b0b5
3
+ size 35047668784
Allocentric_RGB_Videos/22139905.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3739f6dd0a0664f9a530e96c0862e06e4d9dbde4299c47083f6f08517c744feb
3
+ size 29447667841
Allocentric_RGB_Videos/22139906.zip.00.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93f2b72687605dd19a1b3f8d7822e3bb3c9a1f5b3ab3ec682c82827177371246
3
+ size 52613349376
Allocentric_RGB_Videos/22139906.zip.01.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:421562a7b69a9f0558862156a536749011865c0fd98fbffc0b3e4006b0865869
3
+ size 30618457407
Allocentric_RGB_Videos/22139908.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2656e7fc708c533e7e4ba9af96c5e7d66dfc1314b6a77df7ab6659cc410be12c
3
+ size 42700141087
Allocentric_RGB_Videos/22139909.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4655b534ff04cf0fb5222af629a5990c4c3da4eab0184a2fb397f02fc3fa7975
3
+ size 34615585912
Allocentric_RGB_Videos/22139910.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b91558bbafc318ce1d59cc420f468aafd1d1211d72a8c6b067932461c5b28d61
3
+ size 31624481954
Allocentric_RGB_Videos/22139911.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1db9d3794536dea450233785a230b5ea415bed31d66c4ca78b415ff09b85d6e
3
+ size 32892021668
Allocentric_RGB_Videos/22139913.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b44085381c15055b61017323b7af746367b21edb0ef41013e3e6a4def9ece6f9
3
+ size 34108524276
Allocentric_RGB_Videos/22139914.zip.00.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:480262a3cd5e064fff11c026c55979d0bb360eaca1055c28353a11740fd469ed
3
+ size 52613349376
Allocentric_RGB_Videos/22139914.zip.01.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4bd1627ed4b1c36d4f5ec39169c7883810ef4a247ecedf4d89c87bfabe1a715
3
+ size 24631584118
Allocentric_RGB_Videos/22139916.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3594ab32bee4bdae1f947edd47aac5bc54a0cba172976d23e57a4c37a521b667
3
+ size 35498720550
Allocentric_RGB_Videos/22139946.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31abdfce9e83987e2237696a95fe867c188561b0917121c36be2835b04f4515d
3
+ size 30378737211
Egocentric_Camera_Parameters.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e03b9e54d2de0e04bb968a8ec49de65e6737b44bf9b86d6dd3f27a756c01245
3
+ size 18689683
Egocentric_Depth_Videos.zip.00.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a74bfa3112a688be99c6334970e1040c8696c5b15370e5ae9671a857f31ecb8
3
+ size 52613349376
Egocentric_Depth_Videos.zip.01.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b8c2f67cfaad291157679cbdc2b40f3b869e722cedaceee44084fa50f07fbcf
3
+ size 38783523470
Egocentric_RGB_Videos.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc2c472091bfb6a170efa681c8eab099fab4f78294ef2dace43ebcb54f618f29
3
+ size 24666017548
Hand_Poses.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db649d185ae818e63e9f14577067c1318d0751d35b213de8a06688637a1ece51
3
+ size 15231790511
MANIFEST.txt ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2591020290 ./2D_Segmentation.zip
2
+ 7960127 ./Allocentric_Camera_Parameters.zip
3
+ 17039802110 ./Allocentric_RGB_Videos/21218078.zip
4
+ 35047668784 ./Allocentric_RGB_Videos/22070938.zip
5
+ 29447667841 ./Allocentric_RGB_Videos/22139905.zip
6
+ 52613349376 ./Allocentric_RGB_Videos/22139906.zip.00.part
7
+ 30618457407 ./Allocentric_RGB_Videos/22139906.zip.01.part
8
+ 42700141087 ./Allocentric_RGB_Videos/22139908.zip
9
+ 34615585912 ./Allocentric_RGB_Videos/22139909.zip
10
+ 31624481954 ./Allocentric_RGB_Videos/22139910.zip
11
+ 32892021668 ./Allocentric_RGB_Videos/22139911.zip
12
+ 34108524276 ./Allocentric_RGB_Videos/22139913.zip
13
+ 52613349376 ./Allocentric_RGB_Videos/22139914.zip.00.part
14
+ 24631584118 ./Allocentric_RGB_Videos/22139914.zip.01.part
15
+ 35498720550 ./Allocentric_RGB_Videos/22139916.zip
16
+ 30378737211 ./Allocentric_RGB_Videos/22139946.zip
17
+ 18689683 ./Egocentric_Camera_Parameters.zip
18
+ 52613349376 ./Egocentric_Depth_Videos.zip.00.part
19
+ 38783523470 ./Egocentric_Depth_Videos.zip.01.part
20
+ 24666017548 ./Egocentric_RGB_Videos.zip
21
+ 15231790511 ./Hand_Poses.zip
22
+ 14960890331 ./Marker_Removed_Allocentric_RGB_Videos/21218078.zip
23
+ 32257743559 ./Marker_Removed_Allocentric_RGB_Videos/22070938.zip
24
+ 26220025944 ./Marker_Removed_Allocentric_RGB_Videos/22139905.zip
25
+ 52613349376 ./Marker_Removed_Allocentric_RGB_Videos/22139906.zip.00.part
26
+ 19019219765 ./Marker_Removed_Allocentric_RGB_Videos/22139906.zip.01.part
27
+ 37515515336 ./Marker_Removed_Allocentric_RGB_Videos/22139908.zip
28
+ 31006073236 ./Marker_Removed_Allocentric_RGB_Videos/22139909.zip
29
+ 28304374164 ./Marker_Removed_Allocentric_RGB_Videos/22139910.zip
30
+ 30212545565 ./Marker_Removed_Allocentric_RGB_Videos/22139911.zip
31
+ 31348128553 ./Marker_Removed_Allocentric_RGB_Videos/22139913.zip
32
+ 52613349376 ./Marker_Removed_Allocentric_RGB_Videos/22139914.zip.00.part
33
+ 13435251570 ./Marker_Removed_Allocentric_RGB_Videos/22139914.zip.01.part
34
+ 31945991282 ./Marker_Removed_Allocentric_RGB_Videos/22139916.zip
35
+ 27636426386 ./Marker_Removed_Allocentric_RGB_Videos/22139946.zip
36
+ 424209827 ./Object_Models.zip
37
+ 34340303 ./Object_Poses.zip
38
+ 1279 ./README.md
Marker_Removed_Allocentric_RGB_Videos/21218078.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09a3435ebb84cb1d06b378d7b24ff4fb7ded8073a5df6d09eb3bb8db17c8e9f5
3
+ size 14960890331
Marker_Removed_Allocentric_RGB_Videos/22070938.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3427c7443140408d33190c54f7a46ad328efc4c9b8d4c2bfcf8d7afa655247d6
3
+ size 32257743559
Marker_Removed_Allocentric_RGB_Videos/22139905.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d857467d637c0ec849f369707cc87943fee72f509f5d1b61200e439102ad85c0
3
+ size 26220025944
Marker_Removed_Allocentric_RGB_Videos/22139906.zip.00.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1a2e3e54b877094db480ffcf8d1fa24b707521f7565a77868403e459149a773
3
+ size 52613349376
Marker_Removed_Allocentric_RGB_Videos/22139906.zip.01.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:538381034720015982f7bbf5ba168922766341f1dda562293279f558e58538a0
3
+ size 19019219765
Marker_Removed_Allocentric_RGB_Videos/22139908.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99e73de961eda7fc6adb99640b4c82e3d1723fb08ce22fdeb7a76837d90d2df1
3
+ size 37515515336
Marker_Removed_Allocentric_RGB_Videos/22139909.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:963413ba1dbf16a5979772301076095e5fcc3434cd9c20431ecacdb4d4885924
3
+ size 31006073236
Marker_Removed_Allocentric_RGB_Videos/22139910.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39a51dac3f82768bb625086a66a66be974fafffda8037673ae21db302f9bde69
3
+ size 28304374164
Marker_Removed_Allocentric_RGB_Videos/22139911.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd7b0fb800c0bbabd98506fc9651d622965caad12ef5374e8d826232d07703b6
3
+ size 30212545565
Marker_Removed_Allocentric_RGB_Videos/22139913.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:004dca1ebb82a7e5d4e95fb97024e8245e97f235b27a0e9d0c7e02eb7695dfcd
3
+ size 31348128553
Marker_Removed_Allocentric_RGB_Videos/22139914.zip.00.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:180036325657e258bb0d5290a0278ffb3c02d2bc65173fe8928f83a14acdfa38
3
+ size 52613349376
Marker_Removed_Allocentric_RGB_Videos/22139914.zip.01.part ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b89ec94b0a6be975b42c6dfff6c0a64550e9d9aa8157a025d62f0bb9bddc8aa5
3
+ size 13435251570
Marker_Removed_Allocentric_RGB_Videos/22139916.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43138a47144fc914c6fadf76b00f108c8e26f4f56e9430f322ad4ab034363cf5
3
+ size 31945991282
Marker_Removed_Allocentric_RGB_Videos/22139946.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eff24e4bf941da9c68c686b2c3b81b9179804cdcb7a6e25d0ce7ad9160efd1b5
3
+ size 27636426386
Object_Models.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b5209c7e856246cf20b379a599d756d18e8bbbbf7820bf9fe48a334f9a06cfe
3
+ size 424209827
Object_Poses.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39c0478395529b550fd218fdbcb9d0c866282c4dfc0d5bac1116461b85e91b64
3
+ size 34340303
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## TACO: Benchmarking Generalizable Bimanual Tool-ACtion-Object Understanding
2
+
3
+ ### Dataset Versions
4
+
5
+ ### [1] Pre-released Version
6
+
7
+ Dataset links:
8
+
9
+ * OneDrive: https://1drv.ms/f/s!Ap-t7dLl7BFUfmNkrHubnoo8LCs?e=1h0Xhe
10
+ * BaiduNetDisk: https://pan.baidu.com/s/1gANrhzdUyvsUGXcDB4xMfQ?pwd=kg7j
11
+
12
+ Dataset Contents:
13
+
14
+ * **244** high-quality motions sequences spanning **137** ```<tool, action, object>``` triplets
15
+ * **206** High-resolution object models (10K~100K faces per object mesh)
16
+ * Hand-object pose and mesh annotations
17
+ * Egocentric RGB-D videos
18
+ * **8** allocentric RGB videos
19
+
20
+ ### [2] Version 1
21
+
22
+ Dataset link (Dropbox): https://www.dropbox.com/scl/fo/8w7xir110nbcnq8uo1845/AOaHUxGEcR0sWvfmZRQQk9g?rlkey=xnhajvn71ua5i23w75la1nidx&st=9t8ofde7&dl=0
23
+
24
+ Dataset link (for a backup, Dropbox): https://www.dropbox.com/scl/fo/6wux06w26exuqt004eg1a/AM4Ia7pK_b0DURAVyxpHLuY?rlkey=e76q06hyj9yqbahhipmf5ij1o&st=c30zhh8s&dl=0
25
+
26
+ Dataset Contents:
27
+
28
+ * **2317** motions sequences spanning **151** ```<tool, action, object>``` triplets
29
+ * **206** High-resolution object models (10K~100K faces per object mesh)
30
+ * Hand-object pose and mesh annotations
31
+ * Egocentric RGB-D videos
32
+ * **12** allocentric RGB videos
33
+ * Camera parameters
34
+ * Automatic Hand-object 2D segmentations
35
+ * Automatic marker-removed images
prepare_upload.sh ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #
3
+ # Prepare taco_dataset for HuggingFace upload.
4
+ # Splits files > 50GB into 49GB chunks and generates a manifest.
5
+ #
6
+ # Usage: ./prepare_upload.sh [REPO_ID]
7
+ # REPO_ID defaults to mzhobro/taco_dataset
8
+ #
9
+ # After running, upload with:
10
+ # huggingface-cli upload <REPO_ID> . --repo-type dataset
11
+ #
12
+ set -euo pipefail
13
+ cd "$(dirname "$0")"
14
+
15
+ THRESHOLD=$((50 * 1024 * 1024 * 1024)) # 50 GB
16
+ CHUNK="49G"
17
+ BACKUP_DIR="../taco_originals_backup"
18
+
19
+ echo "=== Finding files > 50GB ==="
20
+ LARGE_FILES=()
21
+ while IFS= read -r -d '' f; do
22
+ size=$(stat -c%s "$f")
23
+ if [ "$size" -gt "$THRESHOLD" ]; then
24
+ LARGE_FILES+=("$f")
25
+ fi
26
+ done < <(find . -type f -name '*.zip' -print0)
27
+
28
+ if [ ${#LARGE_FILES[@]} -eq 0 ]; then
29
+ echo "No files exceed 50GB. Nothing to split."
30
+ else
31
+ echo "Found ${#LARGE_FILES[@]} files to split:"
32
+ for f in "${LARGE_FILES[@]}"; do
33
+ echo " $f ($(du -h "$f" | cut -f1))"
34
+ done
35
+ echo ""
36
+
37
+ mkdir -p "$BACKUP_DIR"
38
+ for f in "${LARGE_FILES[@]}"; do
39
+ echo "[SPLIT] $f"
40
+ split -b "$CHUNK" -d --additional-suffix=.part "$f" "${f}."
41
+ echo " Parts created:"
42
+ ls -lh "${f}".*.part
43
+ # Move original to backup (instant on same filesystem)
44
+ backup_path="$BACKUP_DIR/$f"
45
+ mkdir -p "$(dirname "$backup_path")"
46
+ mv "$f" "$backup_path"
47
+ echo " Original moved to $backup_path"
48
+ echo ""
49
+ done
50
+ fi
51
+
52
+ echo "=== Generating manifest ==="
53
+ find . -type f \( -name '*.zip' -o -name '*.part' -o -name '*.md' \) | sort | while read -r f; do
54
+ size=$(stat -c%s "$f")
55
+ echo "$size $f"
56
+ done > MANIFEST.txt
57
+ echo "Wrote MANIFEST.txt ($(wc -l < MANIFEST.txt) files)"
58
+
59
+ echo ""
60
+ echo "=== Done ==="
61
+ echo "To upload:"
62
+ echo " huggingface-cli upload ${1:-mzhobro/taco_dataset} . --repo-type dataset"
reassemble.sh ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #
3
+ # Reassemble split files after downloading from HuggingFace.
4
+ # Finds all *.00.part files, concatenates the parts, and removes them.
5
+ #
6
+ # Usage: ./reassemble.sh
7
+ #
8
+ set -euo pipefail
9
+ cd "$(dirname "$0")"
10
+
11
+ echo "=== Reassembling split files ==="
12
+
13
+ # Find all first parts (*.00.part) to identify split files
14
+ FIRST_PARTS=()
15
+ while IFS= read -r -d '' f; do
16
+ FIRST_PARTS+=("$f")
17
+ done < <(find . -type f -name '*.00.part' -print0)
18
+
19
+ if [ ${#FIRST_PARTS[@]} -eq 0 ]; then
20
+ echo "No split files found. Nothing to reassemble."
21
+ exit 0
22
+ fi
23
+
24
+ echo "Found ${#FIRST_PARTS[@]} split files to reassemble:"
25
+ for f in "${FIRST_PARTS[@]}"; do
26
+ # Original name: remove the .00.part suffix
27
+ original="${f%.00.part}"
28
+ parts=$(ls "${original}".*.part 2>/dev/null | wc -l)
29
+ total=$(du -ch "${original}".*.part 2>/dev/null | tail -1 | cut -f1)
30
+ echo " $original ($parts parts, $total total)"
31
+ done
32
+ echo ""
33
+
34
+ for f in "${FIRST_PARTS[@]}"; do
35
+ original="${f%.00.part}"
36
+ echo "[REASSEMBLE] $original"
37
+ cat "${original}".*.part > "$original"
38
+ echo " Assembled: $(du -h "$original" | cut -f1)"
39
+ rm "${original}".*.part
40
+ echo " Removed parts."
41
+ echo ""
42
+ done
43
+
44
+ # Verify against manifest if available
45
+ if [ -f MANIFEST.txt ]; then
46
+ echo "=== Verifying against MANIFEST.txt ==="
47
+ errors=0
48
+ while read -r expected_size filepath; do
49
+ if [ ! -f "$filepath" ]; then
50
+ # Skip part files listed in manifest (already removed)
51
+ [[ "$filepath" == *.part ]] && continue
52
+ echo " MISSING: $filepath"
53
+ errors=$((errors + 1))
54
+ continue
55
+ fi
56
+ actual_size=$(stat -c%s "$filepath")
57
+ if [ "$actual_size" != "$expected_size" ]; then
58
+ echo " SIZE MISMATCH: $filepath (expected $expected_size, got $actual_size)"
59
+ errors=$((errors + 1))
60
+ fi
61
+ done < MANIFEST.txt
62
+ if [ $errors -eq 0 ]; then
63
+ echo " All files verified OK."
64
+ else
65
+ echo " WARNING: $errors verification errors."
66
+ fi
67
+ fi
68
+
69
+ echo ""
70
+ echo "=== Done ==="