GithubHelp home page GithubHelp logo

Bug in DataHandler about deepnet HOT 3 CLOSED

nitishsrivastava avatar nitishsrivastava commented on June 4, 2024
Bug in DataHandler

from deepnet.

Comments (3)

nitishsrivastava avatar nitishsrivastava commented on June 4, 2024

There is no bug. The 10th line in your code is not necessary as long as the main memory is more than the gpu memory (which is usually the case). If you remove that line, the code will load the next files into the cache only if there are more files to be loaded (self._maxpos < self.parent._maxpos). If the whole dataset fits on the GPU (self._maxpos == self.parent._maxpos), it won't do anything avoiding the overhead of moving the same data repeatedly from the main memory.

from deepnet.

phvu avatar phvu commented on June 4, 2024

Thank you for your clarification, I understand the code better now.
Unfortunately in my case, I am using Debian 32bits with some freaking limits of memory that Python can take. Therefore I can only have 0.5 GB of RAM for storing data (I put "0.5G" in the data proto file), and that makes the Python process use 2GB of RAM, which is the limit. While I have > 2GB memory on GPU, this limit is a pain. And yes, unfortunately, my data can not fit on GPU or CPU memory...

Anyway in this case, do you think it is safe to workaround like that?

from deepnet.

nitishsrivastava avatar nitishsrivastava commented on June 4, 2024

Yes, that would be a safe work around.

from deepnet.

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.