Spaces:
Runtime error
Runtime error
Download libs/BasicSR/scripts/dist_train.sh from Biswajeet01/CreatorAI-Platform: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/Biswajeet01/CreatorAI-Platform/resolve/main/libs/BasicSR/scripts/dist_train.sh
- Command line
-
hf download hf://spaces/Biswajeet01/CreatorAI-Platform/libs/BasicSR/scripts/dist_train.sh
-
curl -L -o dist_train.sh https://huggingface.co/spaces/Biswajeet01/CreatorAI-Platform/resolve/main/libs/BasicSR/scripts/dist_train.sh
379 Bytes
| GPUS=$1 | |
| CONFIG=$2 | |
| PORT=${PORT:-4321} | |
| # usage | |
| if [ $# -lt 2 ] ;then | |
| echo "usage:" | |
| echo "./scripts/dist_train.sh [number of gpu] [path to option file]" | |
| exit | |
| fi | |
| PYTHONPATH="$(dirname $0)/..:${PYTHONPATH}" \ | |
| python -m torch.distributed.launch --nproc_per_node=$GPUS --master_port=$PORT \ | |
| basicsr/train.py -opt $CONFIG --launcher pytorch ${@:3} | |