Download data/data_config.py from lyliang/InstantIR: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/lyliang/InstantIR/resolve/main/data/data_config.py
- Command line
-
hf download hf://spaces/lyliang/InstantIR/data/data_config.py
-
curl -L -o data_config.py https://huggingface.co/spaces/lyliang/InstantIR/resolve/main/data/data_config.py
330 Bytes
| from dataclasses import dataclass, field | |
| from typing import Optional, List | |
| class SingleDataConfig: | |
| dataset_folder: str | |
| imagefolder: bool = True | |
| dataset_weight: float = 1.0 # Not used yet | |
| class DataConfig: | |
| datasets: List[SingleDataConfig] | |
| val_dataset: Optional[SingleDataConfig] = None | |