-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify running commands(single node and multi nodes)
1. Update training logs(glint360k) 2. Update install docs 3. Fix distributed training
- Loading branch information
1 parent
873e94c
commit 8b11677
Showing
6 changed files
with
81 additions
and
52 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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
## Eval IJBC | ||
|
||
```shell | ||
# model-prefix your model path | ||
# image-path your IJBC path | ||
# result-dir your result path | ||
# network your backbone | ||
CUDA_VISIBLE_DEVICES=0,1 python eval_ijbc.py \ | ||
--model-prefix tmp_models/backbone.pth \ | ||
--image-path /data/anxiang/IJB_release/IJBC \ | ||
--result-dir result \ | ||
--model-prefix ms1mv3_arcface_r50/backbone.pth \ | ||
--image-path IJB_release/IJBC \ | ||
--result-dir ms1mv3_arcface_r50 \ | ||
--batch-size 128 \ | ||
--job cosface \ | ||
--job ms1mv3_arcface_r50 \ | ||
--target IJBC \ | ||
--network iresnet50 | ||
``` | ||
|
||
## Eval MegaFace | ||
pass | ||
|
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,36 @@ | ||
## v1.7.1 | ||
### Linux and Windows | ||
```shell | ||
# CUDA 11.0 | ||
pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
# CUDA 10.2 | ||
pip install torch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 | ||
|
||
# CUDA 10.1 | ||
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
# CUDA 9.2 | ||
pip install torch==1.7.1+cu92 torchvision==0.8.2+cu92 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
# CPU only | ||
pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html | ||
``` | ||
|
||
|
||
## v1.6.0 | ||
|
||
### Linux and Windows | ||
```shell | ||
# CUDA 10.2 | ||
pip install torch==1.6.0 torchvision==0.7.0 | ||
|
||
# CUDA 10.1 | ||
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
# CUDA 9.2 | ||
pip install torch==1.6.0+cu92 torchvision==0.7.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
# CPU only | ||
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
``` |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
export OMP_NUM_THREADS=4 | ||
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --nnodes=1 \ | ||
--node_rank=0 --master_addr="127.0.0.1" --master_port=1234 train.py | ||
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --nnodes=1 --node_rank=0 --master_addr="127.0.0.1" --master_port=1234 train.py | ||
ps -ef | grep "train" | grep -v grep | awk '{print "kill -9 "$2}' | sh |
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