File size: 2,673 Bytes
2e6f68f | 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 | # Setup for local source processing
This directory contains the shared download and image/video conversion helpers
used by the six recipe-only directories under `sample/`. Their source data and
generated records are not distributed by this repository.
Use Python 3.10 or later. From the directory containing `MMTA-v1.0/`, install
the dependencies:
```bash
python -m pip install -r MMTA-v1.0/processing/requirements.txt
```
Install `ffmpeg` and `ffprobe` for video processing. Credentialed PhysioNet
downloads also require `wget` and an interactive terminal.
| Domain | Download and generation instructions |
|---|---|
| MIMIC mortality | [mimic_death](../sample/image-timeseries/mimic_death/README.md) |
| MIMIC discharge | [mimic_disch](../sample/image-timeseries/mimic_disch/README.md) |
| PixelRec | [pixelrec](../sample/image-timeseries/pixelrec/README.md) |
| SP500 / FinMultiTime | [sp500](../sample/image-timeseries/sp500/README.md) |
| CoVLA | [covla](../sample/video-timeseries/covla/README.md) |
| CUHK-X HAR | [cuhk_x_har](../sample/video-timeseries/cuhk_x_har/README.md) |
Complete each upstream source's access requirements with your own account before
downloading. `download.py --dry-run` prints a plan without contacting a source or
writing data; actual downloads require `--accept-terms`. Use `--help` on each
domain's `download.py` and `generate.py` to inspect all available options.
Downloaded archives must be unpacked before building.
Keep source data and outputs outside `MMTA-v1.0/`, for example in sibling
`local_sources/` and `local_work/` directories. Generation writes a new domain
directory containing task JSONL, sensor CSVs and intermediate prompts. Video
recipes also write cropped videos; image recipes reference the local source
images rather than copying them. Generated paths are relative to that local
domain directory, and can refer to source images outside it.
`common/local_generation.py` orchestrates the per-domain builders and the common
converters. Optional `--input-jsonl` skips source prompt construction for all
recipes except SP500, which rebuilds inputs using source-dated news strictly
before the forecast cutoff. MIMIC discharge also uses the table, bucketing and
splitting helpers in `sample/image-timeseries/mimic_death/`; retain both MIMIC
directories when copying scripts.
The recipes support local reconstruction, whose exact records may depend on the
available upstream versions. They are not additional `load_dataset`
configurations and do not change the five released test splits.
See [CODE_PROVENANCE.md](CODE_PROVENANCE.md) and
[provenance.json](provenance.json) for script origins and retained notices.
|