forked from whwu95/MVFNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add training script for multi-machine
- Loading branch information
whwu
committed
May 18, 2021
1 parent
ceb25ba
commit ed33622
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
PYTHON=${PYTHON:-"python"} | ||
PORT=${PORT:-28890} | ||
|
||
# run in node 1 | ||
$PYTHON -m torch.distributed.launch \ | ||
--nproc_per_node=$2 \ | ||
--nnodes=2 \ | ||
--node_rank=0 \ | ||
--master_addr="10.127.20.17" \ | ||
--master_port=$PORT \ | ||
train_recognizer.py $1 \ | ||
--launcher pytorch --validate ${@:3} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
PYTHON=${PYTHON:-"python"} | ||
PORT=${PORT:-28890} | ||
|
||
# run in node 1 | ||
$PYTHON -m torch.distributed.launch \ | ||
--nproc_per_node=$2 \ | ||
--nnodes=2 \ | ||
--node_rank=1 \ | ||
--master_addr="10.127.20.17" \ | ||
--master_port=$PORT \ | ||
train_recognizer.py $1 \ | ||
--launcher pytorch --validate ${@:3} | ||
|