Code Monkey home page Code Monkey logo

Comments (5)

anirudh-chakravarthy avatar anirudh-chakravarthy commented on September 26, 2024 1

Hi,

One thing you could try is increasing the radius on this line here to 4 or even more (to thicken edges in ground truths). This could be done in the case that ground truth edges aren't prominent enough.

A few things you could try are

  1. Use a warmup training strategy (train a network for a few ~5 epochs, and use it as pre-trained network)
  2. Increase batch size if you can, or utilize gradient accumulation.
  3. Play around with learning rate, or follow the paper if you wish (as per the paper, "we set the learning rate, step size, gamma and crop size to 1e − 7 / 5e − 8, 10000 / 20000, 0.1 / 0.2 and 352×352 / 472×472 respectively for SBD and Cityscapes").
  4. The most important point, you'll need to train for a large number of epochs. I had trained for ~200 and saw some semblance of a decent results. The authors train for 40000 epochs, and I think that this may be the issue in your case.

Hope that I was of some help, and that you can solve the problem.

from casenet.

anirudh-chakravarthy avatar anirudh-chakravarthy commented on September 26, 2024

Hi,

Yes, while I didn't run training on cityscapes, I trained it on a custom dataset. The loss I got was extremely high too, in the best case it was ~20000. I didn't create an evaluation script, so I can't say for sure, but the visualizations gave me a hint whether it was acceptable or not.

Apologies if this wasn't very helpful!

from casenet.

HoudaC avatar HoudaC commented on September 26, 2024

Thank you for your reply.
In my case, the loss didn't decrease at all and the results were not that good. Could you please give a hint which parameters could I tune to improve the output?

from casenet.

zhouqunbing avatar zhouqunbing commented on September 26, 2024

@anirudh-chakravarthy hi,it's 40000 iteration,not 40000 epoch。

from casenet.

Billy-ZTB avatar Billy-ZTB commented on September 26, 2024

Hi,

One thing you could try is increasing the radius on this line here to 4 or even more (to thicken edges in ground truths). This could be done in the case that ground truth edges aren't prominent enough.

A few things you could try are

  1. Use a warmup training strategy (train a network for a few ~5 epochs, and use it as pre-trained network)
  2. Increase batch size if you can, or utilize gradient accumulation.
  3. Play around with learning rate, or follow the paper if you wish (as per the paper, "we set the learning rate, step size, gamma and crop size to 1e − 7 / 5e − 8, 10000 / 20000, 0.1 / 0.2 and 352×352 / 472×472 respectively for SBD and Cityscapes").
  4. The most important point, you'll need to train for a large number of epochs. I had trained for ~200 and saw some semblance of a decent results. The authors train for 40000 epochs, and I think that this may be the issue in your case.

Hope that I was of some help, and that you can solve the problem.

Hello! I trained on my own dataset, the loss was xe+07 but after one epoch it decreased to -1e+06. How could this situation happen? Why did the loss decreased to negative value?

from casenet.

Related Issues (16)

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.