Giter Club home page Giter Club logo

Comments (6)

yassouali avatar yassouali commented on May 28, 2024

Hi, thank you for your interest in our work,

To make sure I understand, you are training on all of the labels in a supervised manner, and the obtained mIoU is low at 40 epochs ?

Ill run the same on my end and I will get back to you.

from cct.

zhangyuygss avatar zhangyuygss commented on May 28, 2024

Yes, that's my setting. What's your supervised result with all the labeled data?

from cct.

yassouali avatar yassouali commented on May 28, 2024

Thanks,

If I remeber corretly, it was in the high seventies, but it was an earlier version of the code used for the paper, I didnt test it with this version, let me get back to you on this.

from cct.

yassouali avatar yassouali commented on May 28, 2024

Hi, I've just retrained for 35 out of 100 and gotten 73 miou, I expect to go a little bit higher before the end of training,

         val_loss       : 0.21543
         Pixel_Accuracy : 0.937
         Mean_IoU       : 0.7310000061988831

I did actually find an error in the code that might lead to a lower number of epochs in your case, for the supervised mode, the number of iterations is calculated in terms of the unsupervised examples:

tbar = tqdm(range(len(self.supervised_loader)), ncols=135)

should be:

tbar = tqdm(range(len(self.supervised_loader)), ncols=135)

so in your case, the number of the unsupervised examples is lower (depending on number of examples you're training on), so this reduced the number of epochs, so for example, the result you're obtained for 40 epochs is, in reality, say only 20 epochs going through the whole labeled data, so you can simply train for longer and you'll get better results. I just pushed the correction for this bug, and if you run training for 100 epochs, I expect you'll get 74 / 75 at the end. And you can always gain a bit more in mIoU with semi mode or weakly mode.

I hope I answered your question.
Thanks.

from cct.

zhangyuygss avatar zhangyuygss commented on May 28, 2024

Thanks,
I suppose you mean
tbar = tqdm(range(len(self.unsupervised_loader)), ncols=135)
to
tbar = tqdm(range(len(self.supervised_loader)), ncols=135)
here.
I re-run the code and also get 73.4 mIoU at epoch 60.

from cct.

yassouali avatar yassouali commented on May 28, 2024

Yes exactly, thank you !

from cct.

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.