Download test.py from weatherforecast1024/prediff_code: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/weatherforecast1024/prediff_code/resolve/main/test.py
- Command line
-
hf download hf://weatherforecast1024/prediff_code/test.py
-
curl -L -o test.py https://huggingface.co/weatherforecast1024/prediff_code/resolve/main/test.py
452 Bytes
| from datamodule import WeatherForecastDataModuleOld | |
| import yaml | |
| if __name__ == "__main__": | |
| with open('MambaUnet_servir.yaml','r') as f: | |
| config = yaml.safe_load(f) | |
| dm = WeatherForecastDataModuleOld( | |
| **config['data'] | |
| ) | |
| dm.prepare_data() | |
| dm.setup(stage=None) | |
| train_loader = dm.train_dataloader() | |
| for item in train_loader: | |
| # N,C,T,H,W | |
| # print(len(item)) | |
| print(item.shape) | |
| break |