shadowlynx92's picture
Archive README.md
2f25d5a verified
|
Raw History Blame Contribute Delete
1.42 kB
# motion_example_0506: indexed tar archive
Uncompressed tar shards preserving source-relative paths, including all modalities.
Original regular files: 1,498,378. Archive shards: 71.
Wait for `REMOTE_VERIFIED.json` before treating this upload as complete.
No dataset license is inferred or granted by this packaging operation.
## Read a member without extracting the dataset
Download the index and required tar shards, plus `pack_motion_example.py`:
```python
from pack_motion_example import PackedMotionReader
reader = PackedMotionReader('/path/to/dataset_tar')
payload = reader.read_bytes('metadata.jsonl') # use an existing indexed path
reader.close()
```
`reader.open(path)` buffers one member and supports file-object readers such as `numpy.load` / `torch.load`. Existing filename-only video decoders need an adapter.
## Restore files
Keep the tar files, `archive_index.sqlite`, `archive_index.tsv`, `SHA256SUMS`, `packing_summary.json`, and both Python scripts in one folder:
```bash
python unpack_motion_example.py --archive-dir /path/to/dataset_tar --output-dir /path/to/new_restored_directory --workers 8
```
Restoration verifies SHA256 and refuses mismatching existing files. External symlink targets are not copied; external links require explicit opt-in. Hardlinks were materialized as independent files. Ownership is not restored; special permission bits are removed and owner access is retained.