GithubHelp home page GithubHelp logo

out of memory about pymdnet HOT 5 OPEN

hyseob avatar hyseob commented on August 19, 2024
out of memory

from pymdnet.

Comments (5)

Adeel-Abdullah avatar Adeel-Abdullah commented on August 19, 2024 1

I've been getting the exact same error, I was using the nvidia gtx 960M of my laptop which has 2gb of memory, looks like 2gb is simply not enough for this. It'd be nice to know how much gpu memory we do require for running MDNet

from pymdnet.

ahkarami avatar ahkarami commented on August 19, 2024

I have also tested the code via 4 Gb GPU, but I got the below error:

File "../modules/model.py", line 40, in forward
    torch.cat((pad,pad,pad,pad,x_sq),2)),1)
RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1512386481460/work/torch/lib/THC/generic/THCStorage.cu:58

from pymdnet.

ahkarami avatar ahkarami commented on August 19, 2024

Hi,
You can change parameter opts['batch_test'] = 256 in [options.py] file, and modify it into (for example) opts['batch_test'] = 25 to run the code via ~ 2GB GPU.

from pymdnet.

ahkarami avatar ahkarami commented on August 19, 2024

the default parameters needs ~ 5.5 Gb GPU memory.

from pymdnet.

ciokan avatar ciokan commented on August 19, 2024
python run_tracker.py -s DragonBaby -d -f
THCudaCheck FAIL file=/pytorch/aten/src/THC/generic/THCStorage.cu line=58 error=2 : out of memory
Traceback (most recent call last):
  File "run_tracker.py", line 329, in <module>
    result, result_bb, fps = run_mdnet(img_list, init_bbox, gt=gt, savefig_dir=savefig_dir, display=display)
  File "run_tracker.py", line 146, in run_mdnet
    bbreg_feats = forward_samples(model, image, bbreg_examples)
  File "run_tracker.py", line 33, in forward_samples
    regions = regions.cuda()
RuntimeError: cuda runtime error (2) : out of memory at /pytorch/aten/src/THC/generic/THCStorage.cu:58

Titan X 12GB - the vcard goes to 20% on memory then this error pops out. Any ideas?

from pymdnet.

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.