Code Monkey home page Code Monkey logo

Comments (4)

zh794390558 avatar zh794390558 commented on July 24, 2024

see this tensorflow/tensorflow#30892.
I will check if eval can work, train_and_eval is recommended.
we using TF keras not Keras.

from delta.

Saduras avatar Saduras commented on July 24, 2024

I don't think the issue is related. It seems rather to have something to do with dynamic shapes. I found an (awful) hacky workaround by adding

self.model.fit({'inputs': np.zeros((1,700,257,1)), 'labels':np.array([0])}, epochs=0)

in asr_solver.build() after self.model.compile(). This seems to cause all layers of the model to be build properly, while compile leaves something unbuilt.

from delta.

zh794390558 avatar zh794390558 commented on July 24, 2024

relevant issue keras-team/keras#11072

from delta.

zh794390558 avatar zh794390558 commented on July 24, 2024

This error is cause by .h5 model , please using tensorflow model instead.
Fix model save from callback and model load, replacing *.h5 by *.ckpt suffix.

from delta.

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.