GithubHelp home page GithubHelp logo

Comments (3)

sucream1004 avatar sucream1004 commented on July 29, 2024

sorry it actually worked i misunderstood

from neural-image-assessment.

Xiaocong6 avatar Xiaocong6 commented on July 29, 2024

hi~
i met the same error, how do you solve it?

from neural-image-assessment.

syagmur avatar syagmur commented on July 29, 2024

I had the same error and spend more than a day to debug it. In case someone looks for a solution, I have changed the last part of the training functions from:

model.fit_generator(train_generator(batchsize=batchsize),
steps_per_epoch=(250000. // batchsize),
epochs=epochs, verbose=1, callbacks=callbacks,
validation_data=val_generator(batchsize=batchsize),
validation_steps=(5000. // batchsize))

to:

train_data_generator = train_generator(batchsize=batchsize)
val_data_generator = val_generator(batchsize=batchsize)
model.fit_generator(train_data_generator,
steps_per_epoch=(250000. // batchsize),
epochs=epochs, verbose=1, callbacks=callbacks,
validation_data=val_data_generator,
validation_steps=(5000. // batchsize))

I don't know why it works this way but solved my problem. Hope that helps!

from neural-image-assessment.

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.