Vision: command line to train FCN and DeepLab

Created on 9 Oct 2019  路  5Comments  路  Source: pytorch/vision

What are the command lines to train the segmentation (FCN and DeepLabV3) networks to accuracy mentioned in torchvision website (63.7 and 67.4 IoU).

models question semantic segmentation

Most helpful comment

Coco dataset with train.py in references/segmentation folder.

All 5 comments

Also, when running the training script with default parameters, I get this error:

model = torch.nn.SyncBatchNorm.convert_sync_batchnorm(model)
AttributeError: type object 'SyncBatchNorm' has no attribute 'convert_sync_batchnorm'

Hi,

Sorry for the delay in replying.

Here are the commands I used

python -m torch.distributed.launch --nproc_per_node=8 --use_env train.py --lr 0.02 --dataset coco -b 4 --model fcn_resnet101 --aux-loss

for fcn_resnet101 and

python -m torch.distributed.launch --nproc_per_node=8 --use_env train.py --lr 0.02 --dataset coco -b 4 --model deeplabv3_resnet101 --aux-loss

for deeplabv3_resnet101.

About your error, it looks like you are not using a recent enough version of PyTorch? What's your PyTorch version? It should be at least 1.2.

Let me know if you have further questions

@a-maci can I know with what code you're going to use that command line? which dataset? where is the file for train.py?

Coco dataset with train.py in references/segmentation folder.

Thanks for raising this up again @isalirezag , I'm updating the README in https://github.com/pytorch/vision/pull/1864 with the commands for training the model

Was this page helpful?
0 / 5 - 0 ratings

Related issues

300LiterPropofol picture 300LiterPropofol  路  3Comments

alpha-gradient picture alpha-gradient  路  3Comments

iacolippo picture iacolippo  路  4Comments

bodokaiser picture bodokaiser  路  3Comments

feiyangsuo picture feiyangsuo  路  3Comments