Coder Social home page Coder Social logo

GPU memory / joint training about dilation HOT 11 OPEN

fyu avatar fyu commented on June 9, 2024
GPU memory / joint training

from dilation.

Comments (11)

CQFIO avatar CQFIO commented on June 9, 2024 1

I only tried predict.py for a single image. I get "out of memory" error with Titan X.

from dilation.

manuelschmidt avatar manuelschmidt commented on June 9, 2024 1

I also started to play around with the code a bit and wanted to test it on the cityscapes testimage. Not training, just the predict.py.
And it shows me there out of memory when I try it on my gpu with --gpu 0. Did you guys find a solution for it? Is really 18GB of GPU memory required for it? If so - is there any possibility to reduce the memory footprint at testing time? I use cudnn v5.1 and CUDA 8.0.

By the way: It works on KITTI with GPU and on cityscapes with CPU only.

from dilation.

CQFIO avatar CQFIO commented on June 9, 2024

I have a similar issue. I can only run the program in CPU mode because it requires about 18 Gb in memory.

from dilation.

fyu avatar fyu commented on June 9, 2024

@Timo-hab @chenqifeng22 test_batch has to be 0 for cityscape joint training. Was it set correctly?

from dilation.

fyu avatar fyu commented on June 9, 2024

@chenqifeng22 You have to check your setup. A lot of people have confirmed to me that predict.py can work well.

from dilation.

CQFIO avatar CQFIO commented on June 9, 2024

@fyu I need to install cuDNN to make it work.

from dilation.

Timo-hab avatar Timo-hab commented on June 9, 2024

@fyu thank you for your answer. test_batch wasnt set to 0. Now i can start the training, but dont see test results of course.
Is it possible to test the model on validation dataset while training, so i can see accuracy and loss, without the need for more GPU memory?

from dilation.

CQFIO avatar CQFIO commented on June 9, 2024

@manuelschmidt Depending on the model of GPU, the dilation network needs different amount of memory (which is quite strange to me).
There is a simple solution. Just make the input image size smaller in the prototype file. Also you need to change " if dataset.zoom > 1:" to "if dataset.zoom >= 1:" in the predict.py to prevent a bug.

from dilation.

qualia0000 avatar qualia0000 commented on June 9, 2024

@fyu I am training the ADE20K dataset on the Dilation network with the frontend mode in GPU with 8 GB memory and I get the error message 'out of memory'. Is 8 GB enough for the training?
My training batch is set as 10 and test batch 0.
Thank you

from dilation.

fyu avatar fyu commented on June 9, 2024

@qualia0000 Besides the batch size, the memory consumption also depends on the crop size.

from dilation.

qualia0000 avatar qualia0000 commented on June 9, 2024

@fyu Thank you for your reply. The crop size is set as 500. I'll try methods to make the consumption smaller.

from dilation.

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.