Code Monkey home page Code Monkey logo

Comments (5)

VainF avatar VainF commented on July 3, 2024

Hi @leoshine , which dataset was used for your training? voc12 or voc12aug? The pretrained models are trained on voc12aug which has more training data than the standard voc12.

from deeplabv3plus-pytorch.

leoshine avatar leoshine commented on July 3, 2024

Yes. I use voc12aug. I just turn off the visualization.
Nothing is changed:

python main.py --model deeplabv3plus_resnet101 --gpu_id 0,1,2,3 --year 2012_aug --crop_val --lr 0.01 --crop_size 513 --batch_size 16 --output_stride 16

B.t.w. I downloaded the released model (DeepLabV3Plus-ResNet101) and tested it. The mIOU can exactly reach 0.783.

from deeplabv3plus-pytorch.

VainF avatar VainF commented on July 3, 2024

#5 (comment).
This issue is caused by the batchnorm. There is no sync BN in this repo and training with multiple GPUs will simply split the batch and distribute them to each device. So each GPU only gets 16 / 4 = 4 samples and there is no communication between different devices. It is recommended to train the model on a single GPU or use some third-party SyncBN to replace the default one.

May be you can try the SyncBN from Hang Zhang.

from deeplabv3plus-pytorch.

leoshine avatar leoshine commented on July 3, 2024

Thanks for the information.
I've tried this version of SyncBN: https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
And I can now reproduce the mIOU=78.3%.
Great work. Thanks.

from deeplabv3plus-pytorch.

Haoteng0612 avatar Haoteng0612 commented on July 3, 2024

Yes. I use voc12aug. I just turn off the visualization.
Nothing is changed:

python main.py --model deeplabv3plus_resnet101 --gpu_id 0,1,2,3 --year 2012_aug --crop_val --lr 0.01 --crop_size 513 --batch_size 16 --output_stride 16

B.t.w. I downloaded the released model (DeepLabV3Plus-ResNet101) and tested it. The mIOU can exactly reach 0.783.

How do you test and get 0.783. Are there any tricks when testing since I can not get this point with the released model.

from deeplabv3plus-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.