Giter Site home page Giter Site logo

Why is keras training slow? about nsfw_model HOT 4 CLOSED

gantman avatar gantman commented on May 20, 2024
Why is keras training slow?

from nsfw_model.

Comments (4)

chenzi avatar chenzi commented on May 20, 2024 1

I tryed set wokrder=1000 then The training speed is faster.

from nsfw_model.

chenzi avatar chenzi commented on May 20, 2024

I get an error RuntimeWarning: Can save best model only with val_acc available, skipping.
'skipping.' % (self.monitor), RuntimeWarning)
image

from nsfw_model.

GantMan avatar GantMan commented on May 20, 2024

You're having around the same speed I have.

I think training is slower in this Keras model for 2 reasons. There is real-time image manipulation to augment the training set, and the amount of data per epoch is huge. Given the batch size, I'm using.
To get this model to 93% I trained on my machine for days.

As for your error message:
Did you change anything in the code? If so consult this link keras-team/keras#836

from nsfw_model.

GantMan avatar GantMan commented on May 20, 2024

Another thing, since your computer you're using has more power than mine, you might want to try removing my workers=0 line. You might get a training boost.

from nsfw_model.

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.