GithubHelp home page GithubHelp logo

Comments (6)

jiasenlu avatar jiasenlu commented on August 18, 2024

Hi, That's wired, with the default batch size (500) it takes about 9 GB GPU RAM to run, I've also tested on Titan X. Could you try again with the smaller batch size (such as 128) and make sure no other program running on that GPU?

from vqa_lstm_cnn.

jnhwkim avatar jnhwkim commented on August 18, 2024

@kumarabhinavgupta In my case, it works fine. To make sure your situation, update cunn and cutorch using luarocks install cunn and luarocks install cutorch.

from vqa_lstm_cnn.

kumarabhinavgupta avatar kumarabhinavgupta commented on August 18, 2024

Thanks for replying.

We updated cunn and cutorch as suggested by @jnhwkim and tried with batch size of 128 (and even 1) as suggested by @jiasenlu . But still we are getting the "Out of Memory" error, but this time after 900 iterations.

The same Titan X is training other networks which require 8-9GB of RAMs, without a problem.

What are the likely errors which we might look for ?

from vqa_lstm_cnn.

jiasenlu avatar jiasenlu commented on August 18, 2024

I think maybe it's safer to add collectgarbage() inside the training function. Could you try adding the following in the training function?

if i%50 == 0 then
collectgarbage()
end

or you can re-download the train.lua and try again.

from vqa_lstm_cnn.

kumarabhinavgupta avatar kumarabhinavgupta commented on August 18, 2024

Thanks a lot. The solution is training now.

We had to make 2 more changes.

  • It should be "iter" instead of i
  • Remove "end" at line no. 310

from vqa_lstm_cnn.

jnhwkim avatar jnhwkim commented on August 18, 2024

I've faced the same situation in different machine. In my case, I have to collect garbages at every 5 iterations. FYI.

from vqa_lstm_cnn.

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.