Closed hrsma2i closed 3 years ago
Maybe you also need to change decode_head
@xvjiarui Thank you for your replying.
It still fails with the same error though I changed decode_head
along with the tutorial like the following:
cfg.model.decode_head.norm_cfg = cfg.norm_cfg
and
cfg.model.decode_head.num_classes = 8
@xvjiarui I resolved this issue by myself! 🎉 I need to change the config like the following:
cfg.model.decode_head.loss_decode.use_sigmoid = False
cfg.model.auxiliary_head[0].loss_decode.use_sigmoid = False
cfg.model.auxiliary_head[1].loss_decode.use_sigmoid = False
Checklist
Describe the bug
It fails to train Fast-SCNN by the following CUDA error:
Reproduction
I tried to train Fast-SCNN with the following script by reference to https://github.com/open-mmlab/mmsegmentation/blob/master/demo/MMSegmentation_Tutorial.ipynb
I can train PSPNet though can't train Fast-SCNN.
train.py
The difference between the above script and the tutorial code:
StanfordBackgroundDataset
Environment
python mmseg/utils/collect_env.py
to collect necessary environment infomation and paste it here.$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)pip install torch==1.6.0 torchvision==0.7.0
I installed CUDA, following the official instructions:
https://developer.nvidia.com/cuda-10.2-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork
Error traceback
If applicable, paste the error trackback here.
the error trackback
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!