blur-slam-bpn-code / EVSSM /scripts /dist_test.sh
zhaoshiwen's picture
Initial upload: BPN deblur pipeline code (scripts, triangle-splatting, BAGS, EVSSM forks)
c75b162 verified
Raw
History Blame Contribute Delete
370 Bytes
#!/usr/bin/env bash
GPUS=$1
CONFIG=$2
PORT=${PORT:-4321}
# usage
if [ $# -ne 2 ] ;then
echo "usage:"
echo "./scripts/dist_test.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/test.py -opt $CONFIG --launcher pytorch