Spaces:
Configuration error
Configuration error
Download dataset/reseed.py from yyang181/ColorMNet: direct link, hf CLI and curl.
- Browser
- Download file 95 Bytes
-
https://huggingface.co/spaces/yyang181/ColorMNet/resolve/main/dataset/reseed.py
- Command line
-
hf download hf://spaces/yyang181/ColorMNet/dataset/reseed.py
-
curl -L -o reseed.py https://huggingface.co/spaces/yyang181/ColorMNet/resolve/main/dataset/reseed.py
95 Bytes
| import torch | |
| import random | |
| def reseed(seed): | |
| random.seed(seed) | |
| torch.manual_seed(seed) |