Code Monkey home page Code Monkey logo

Comments (6)

sachinprasadhs avatar sachinprasadhs commented on June 22, 2024

You seem to be using the older Keras version in your local system. Keras 3 with multi backend feature is available, you can upgrade the Keras package and try again.

pip install -U keras

from keras-io.

Gacha76 avatar Gacha76 commented on June 22, 2024

Below screenshot is using Keras 3. Batch no longer goes out of range but loss values still become nan.

Screenshot 2024-04-16 164217

from keras-io.

github-actions avatar github-actions commented on June 22, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from keras-io.

sachinprasadhs avatar sachinprasadhs commented on June 22, 2024

The tutorial which you are referring to has not been migrated to Keras 3 yet, possibly due to some dependency on Tensorflow or Keras 2 APIs.

I was able ti run the tutorial successfully for 1 epoch with TensorFlow 2.15 which uses Keras 2.15 in it's backend.
Attaching the working Gist here for reference https://colab.sandbox.google.com/gist/sachinprasadhs/5aead85438db273c01e72ec257d6c09e/depth_estimation.ipynb

from keras-io.

Gacha76 avatar Gacha76 commented on June 22, 2024

It works for 1 epoch for me as well in both Keras 2 and Keras 3. The issue arises when I need to train the model for more than 1 epoch which results in the above behavior. Also, since the loss values become undefined, the neural network starts to output nothing but a black screen as shown here.

Screenshot 2024-04-17 090156

from keras-io.

sachinprasadhs avatar sachinprasadhs commented on June 22, 2024

In the published tutorial we can see output for more number of epochs.
Since the tutorial is not yet migrated to Keras 3, we can look at it once the tutorial is migrated to Keras 3, Keras team doesn't have enough bandwidth to migrate tutorials.
Community contributions are welcome.

from keras-io.

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.