Giter VIP home page Giter VIP logo

Comments (4)

Abe404 avatar Abe404 commented on August 21, 2024

The offending code is here:

assert np.any(annot[1])

The mechanism here is that the system will retry if it didn't find any foreground, if force_fg is also true, which happens with a certain probability early on in training to avoid sampling too many background only patches early in training.

The problem (I believe) that is causing the server to crash is that the max_retries were for some reason set to 2.

bedb9dc

I've put it back up to 200. I consider it unlikely that you will have 200 randomly sampled images without foreground. If so then I can come up with a different solution.

In general I don't think this retry solution is optimal, but hopefully this is a temporary fix.

Can you please let me know if it is working OK for you now.

from rootpainter3d.

jenspete avatar jenspete commented on August 21, 2024

It seems to be training now, although the server output is a somewhat cluttered with exceptions, which might confuse. However, it is okay for me :).

from rootpainter3d.

Abe404 avatar Abe404 commented on August 21, 2024

Actually I agree these error messages aren't great. I will change the code so it is not an exception when foreground is not found.

from rootpainter3d.

Abe404 avatar Abe404 commented on August 21, 2024

Fixed so it retries without exceptions/warnings. Still in another branch though. will close this issue when it is merged into master

dd8362c

from rootpainter3d.

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.