Coder Social home page Coder Social logo

Comments (7)

jfzhang95 avatar jfzhang95 commented on June 3, 2024

Hi,

Did you use both voc and sbd datasets to train your model?

from pytorch-deeplab-xception.

xinario avatar xinario commented on June 3, 2024

from pytorch-deeplab-xception.

Chenfeng1271 avatar Chenfeng1271 commented on June 3, 2024

I set the batch-size to 7 and train the resnet-deeplab in one GPU, the result as he has said is not very good. Does the large batch necessary?

from pytorch-deeplab-xception.

herleeyandi avatar herleeyandi commented on June 3, 2024

Same problem I am using this setting since I have only 1 GPU and the batch size=2. The best mIoU is 0.4241, I also using the sbd dataset.
CUDA_VISIBLE_DEVICES=0 python train.py --backbone resnet --lr 0.007 --workers 4 --use-sbd --epochs 50 --batch-size 2 --gpu-ids 0 --checkname deeplab-resnet --eval-interval 1 --dataset pascal

image

from pytorch-deeplab-xception.

Pyten avatar Pyten commented on June 3, 2024

@jfzhang95
hi, thanks for releasing this great repo. I also meet the problem as @herleeyandi mentioned. The first time I trained resnet-deeplab with 4 GPUs only on voc2012, I got the following result finally,which is
lower than yours.[Acc:0.9367393799223944, Acc_class:0.8456251915935047, mIoU:0.7503445318159087, fwIoU: 0.8860949569691601]
Then, I trained with voc2012 and SBD downloaded from http://home.bharathh.info/pubs/codes/SBD/download.html, which is said to contain annotations from 11355 images taken from the PASCAL VOC 2011 dataset. But at last, I got a much worse result,
[=>Epoches 49, learning rate = 0.0002, previous best = 0.6884
Train loss: 0.019:
[Epoch: 49, numImages: 10582]
Loss: 25.682
Test loss: 0.170:
Validation:
[Epoch: 49, numImages: 1449]
Acc:0.7204461224682133, Acc_class:0.15227327091506154, mIoU:0.13477149028396554, fwIoU: 0.5229250562245572
Loss: 30.954]
However, I only change the batch_size from 16 to 8 in my experiments, while the other parameters remain the same as yours. So I am wondering how this happens. Please give me some help.

from pytorch-deeplab-xception.

MCDM2018 avatar MCDM2018 commented on June 3, 2024

@ptl2011 Before leaving my opinion, I don't want to talk down his excellent repository.
I think he has a mistake. Actually, many people already suffered from that suggestion.
So as you did at first, we should train the model with only VOC 2012

from pytorch-deeplab-xception.

opee007 avatar opee007 commented on June 3, 2024

@jfzhang95
hi, thanks for releasing this great repo. I also meet the problem as @herleeyandi mentioned. The first time I trained resnet-deeplab with 4 GPUs only on voc2012, I got the following result finally,which is
lower than yours.[Acc:0.9367393799223944, Acc_class:0.8456251915935047, mIoU:0.7503445318159087, fwIoU: 0.8860949569691601]
Then, I trained with voc2012 and SBD downloaded from http://home.bharathh.info/pubs/codes/SBD/download.html, which is said to contain annotations from 11355 images taken from the PASCAL VOC 2011 dataset. But at last, I got a much worse result,
[=>Epoches 49, learning rate = 0.0002, previous best = 0.6884
Train loss: 0.019:
[Epoch: 49, numImages: 10582]
Loss: 25.682
Test loss: 0.170:
Validation:
[Epoch: 49, numImages: 1449]
Acc:0.7204461224682133, Acc_class:0.15227327091506154, mIoU:0.13477149028396554, fwIoU: 0.5229250562245572
Loss: 30.954]
However, I only change the batch_size from 16 to 8 in my experiments, while the other parameters remain the same as yours. So I am wondering how this happens. Please give me some help.

hello,I have encountered the same problem. Can you solve it?

from pytorch-deeplab-xception.

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.