GithubHelp home page GithubHelp logo

Memory exhausted error about pygta5 HOT 9 CLOSED

sentdex avatar sentdex commented on July 24, 2024
Memory exhausted error

from pygta5.

Comments (9)

frossaren avatar frossaren commented on July 24, 2024 2

Solved by adding batch_size in the model.fit row

from pygta5.

johndpope avatar johndpope commented on July 24, 2024

screen shot 2017-07-21 at 22 12 59

see 20 mins in for a config you can set to avoid tensorflow hogging ram. https://blog.altoros.com/video-and-slides-from-the-tensorflow-london-meetup-march-31-2016.html

@Sentdex - I think this is related to your memory hogging problem on your 7/8/9 video.

from pygta5.

johndpope avatar johndpope commented on July 24, 2024

I think you want to call tf.reset_default_graph() somewhere. although it's not clear where.
you will likely need to
import tensorflow as tf
the code should expose this.

from pygta5.

frossaren avatar frossaren commented on July 24, 2024

@johndpope Where am i supposed to use this config? Tried but keeps getting the same error

from pygta5.

johndpope avatar johndpope commented on July 24, 2024

sorry @frossaren - it's a stab in the dark.
watching the tutorials - I understood that the machine learning was using tensorflow.
but searching through code - it doesn't appear - although there is a reference to tflearn.
if you can get the tensorflow session - then you should be able to configure the gpu memory options.

from pygta5.

frossaren avatar frossaren commented on July 24, 2024

Well then i am completely stuck. Will keep on googleing and see if i can find something useful and update here if i do.

from pygta5.

johndpope avatar johndpope commented on July 24, 2024

you should do a PR. when you help another you automatically help yourself. it's like multi tasking.

from pygta5.

frossaren avatar frossaren commented on July 24, 2024

from pygta5.

frossaren avatar frossaren commented on July 24, 2024

performance seemes to be unaffected so i will do a pr

from pygta5.

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.