mirror of
https://github.com/alibaba/EasyCV.git
synced 2025-06-03 14:49:00 +08:00
10 lines
234 B
Bash
Executable File
10 lines
234 B
Bash
Executable File
#!/usr/bin/env bash
|
|
PYTHON=${PYTHON:-"python"}
|
|
|
|
GPUS=$1
|
|
PY_ARGS=${@:2}
|
|
PORT=${PORT:-29527}
|
|
|
|
PYTHONPATH=./ $PYTHON -m torch.distributed.launch --nproc_per_node=$GPUS --master_port=$PORT \
|
|
tools/predict.py $PY_ARGS --launcher pytorch \
|