forked from CoinCheung/BiSeNet
-
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.
* rebase to master * little modification * augmentation implemented with torch * use cuda11.3+torch11, torchrun * refactor * support other value of ignore label * discard distributed
- Loading branch information
1 parent
f9231b7
commit a54e37a
Showing
14 changed files
with
121 additions
and
98 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,32 @@ | ||
|
||
''' | ||
NOTE: replace torchrun with torch.distributed.launch if you use older version of pytorch. I suggest you use the same version as I do since I have not tested compatibility with older version after updating. | ||
''' | ||
|
||
|
||
## bisenetv1 cityscapes | ||
export CUDA_VISIBLE_DEVICES=0,1 | ||
cfg_file=configs/bisenetv1_city.py | ||
NGPUS=2 | ||
torchrun --nproc_per_node=$NGPUS tools/train_amp.py --config $cfg_file | ||
|
||
|
||
## bisenetv2 cityscapes | ||
export CUDA_VISIBLE_DEVICES=0,1 | ||
cfg_file=configs/bisenetv2_city.py | ||
NGPUS=2 | ||
torchrun --nproc_per_node=$NGPUS tools/train_amp.py --config $cfg_file | ||
|
||
|
||
## bisenetv1 cocostuff | ||
export CUDA_VISIBLE_DEVICES=0,1,2,3 | ||
cfg_file=configs/bisenetv1_coco.py | ||
NGPUS=4 | ||
torchrun --nproc_per_node=$NGPUS tools/train_amp.py --config $cfg_file | ||
|
||
|
||
## bisenetv2 cocostuff | ||
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 | ||
cfg_file=configs/bisenetv2_coco.py | ||
NGPUS=8 | ||
torchrun --nproc_per_node=$NGPUS tools/train_amp.py --config $cfg_file |
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
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
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 @@ | ||
|
||
|
||
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 | ||
export CUDA_VISIBLE_DEVICES=2,3 | ||
PORT=12333 | ||
NGPUS=2 | ||
cfg=configs/bisenetv1_city.py | ||
# cfg=configs/bisenetv2_city.py | ||
# cfg=configs/bisenetv1_coco.py | ||
# cfg=configs/bisenetv2_coco.py | ||
|
||
torchrun --nproc_per_node=$NGPUS --master_port $PORT tools/train_amp.py --config $cfg | ||
# python -m torch.distributed.launch --use_env --nproc_per_node=$NGPUS --master_port $PORT tools/train_amp.py --config $cfg | ||
|
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