Spaces:
Runtime error
Runtime error
Download scripts/generate_dataset.py from mattricesound/RemFx: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/mattricesound/RemFx/resolve/main/scripts/generate_dataset.py
- Command line
-
hf download hf://spaces/mattricesound/RemFx/scripts/generate_dataset.py
-
curl -L -o generate_dataset.py https://huggingface.co/spaces/mattricesound/RemFx/resolve/main/scripts/generate_dataset.py
386 Bytes
| import pytorch_lightning as pl | |
| import hydra | |
| from omegaconf import DictConfig | |
| def main(cfg: DictConfig): | |
| # Apply seed for reproducibility | |
| if cfg.seed: | |
| pl.seed_everything(cfg.seed) | |
| _ = hydra.utils.instantiate(cfg.datamodule, _convert_="partial") | |
| if __name__ == "__main__": | |
| main() | |