Upload folder using huggingface_hub
Browse files
prostatectomy/TRANSFER_README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Prostatectomy split archive transfer guide
|
| 2 |
+
|
| 3 |
+
This is a new transfer guide. It does not replace or modify the source dataset's
|
| 4 |
+
original `prostatectomy/README.md`.
|
| 5 |
+
|
| 6 |
+
## Archive layout
|
| 7 |
+
|
| 8 |
+
All archives are uncompressed tar files. Every archive retains the top-level
|
| 9 |
+
`prostatectomy/` path, so extracting every part into the same parent directory
|
| 10 |
+
reconstructs the original dataset tree.
|
| 11 |
+
|
| 12 |
+
First batch:
|
| 13 |
+
|
| 14 |
+
- `prostatectomy_non_video.tar`: original `README.md`, `data/`, and `meta/`
|
| 15 |
+
- `prostatectomy_videos_chunk-000.tar`
|
| 16 |
+
- `prostatectomy_videos_chunk-001.tar`
|
| 17 |
+
- `prostatectomy_videos_chunk-002.tar`
|
| 18 |
+
- `prostatectomy_videos_chunk-003.tar`
|
| 19 |
+
- `prostatectomy_videos_chunk-004.tar`
|
| 20 |
+
|
| 21 |
+
Remaining video chunks to package after the first batch has been uploaded and
|
| 22 |
+
local space has been reclaimed:
|
| 23 |
+
|
| 24 |
+
- `chunk-005` through `chunk-010`
|
| 25 |
+
|
| 26 |
+
Files ending in `.partial` are still being written and must not be uploaded.
|
| 27 |
+
Only upload files whose names end exactly in `.tar`.
|
| 28 |
+
|
| 29 |
+
## Reconstruct on the destination machine
|
| 30 |
+
|
| 31 |
+
Choose the parent directory that should contain `prostatectomy/`:
|
| 32 |
+
|
| 33 |
+
```bash
|
| 34 |
+
DEST_PARENT=/path/to/cmr_surgical
|
| 35 |
+
mkdir -p "${DEST_PARENT}"
|
| 36 |
+
|
| 37 |
+
tar -xf prostatectomy_non_video.tar -C "${DEST_PARENT}"
|
| 38 |
+
for archive in prostatectomy_videos_chunk-*.tar; do
|
| 39 |
+
tar -xf "${archive}" -C "${DEST_PARENT}"
|
| 40 |
+
done
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
This produces:
|
| 44 |
+
|
| 45 |
+
```text
|
| 46 |
+
${DEST_PARENT}/prostatectomy/
|
| 47 |
+
βββ README.md
|
| 48 |
+
βββ data/
|
| 49 |
+
βββ meta/
|
| 50 |
+
βββ videos/
|
| 51 |
+
βββ chunk-000/
|
| 52 |
+
βββ chunk-001/
|
| 53 |
+
βββ ...
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Parts may be extracted in any order. Extracting later batches into the same
|
| 57 |
+
`DEST_PARENT` adds the remaining chunks without changing existing chunks.
|
| 58 |
+
|
| 59 |
+
## Basic verification
|
| 60 |
+
|
| 61 |
+
Check an archive before extracting:
|
| 62 |
+
|
| 63 |
+
```bash
|
| 64 |
+
tar -tf prostatectomy_non_video.tar >/dev/null
|
| 65 |
+
tar -tf prostatectomy_videos_chunk-000.tar >/dev/null
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
After every batch has been extracted, the complete dataset should contain video
|
| 69 |
+
directories `chunk-000` through `chunk-010`.
|