GithubHelp home page GithubHelp logo

CUDA out of memory about srgan-pytorch HOT 16 CLOSED

lornatang avatar lornatang commented on May 30, 2024
CUDA out of memory

from srgan-pytorch.

Comments (16)

Lornatang avatar Lornatang commented on May 30, 2024 1

There may be multiple tasks running on the machine at the same time, or the machine may not have enough memory

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

What is the size of your image? Observe the fluctuation of the CUDA memory during the operation of the program.

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

When i calculate the psnr and update them i get the above error and my cuda memory as shown below but if i calculate the psnr but don't update them no more error.
Screenshot from 2022-06-10 08-15-13

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

The PSNR model is small and fast, it shouldn't take up so much memory, can you tell me the memory usage with and without PSNR?

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

When i comment psnr in train function, cuda memory as shown below
Screenshot from 2022-06-10 09-36-40

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

Does this issue occur during training or during testing?

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

train() or validate()?

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

only in train()

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

CUDA version?
CUDNN version?
PyTorch & Torchvision version?

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

In the current code, the psnr calculation will not be called, but will be called in validate(), check the difference between some native code and the latest code on Git?

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

CUDA 11.1
CUDNN 8.0.5
Pytorch 1.11.0+cu113
Torchvision 0.12.0+cu113
I run this in gg colab

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

yes, but i don't know why when i call train() it gives error

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

give me your config.py file. I check it

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

I edit your code in this repo, please help me check it
[email protected]:leminhhuy132/SRGAN_DACN.git

from srgan-pytorch.

Lornatang avatar Lornatang commented on May 30, 2024

I edit your code in this repo, please help me check it [email protected]:leminhhuy132/SRGAN_DACN.git

in config.py 46 line batch_size 256? lt is so big?

from srgan-pytorch.

leminhhuy132 avatar leminhhuy132 commented on May 30, 2024

i tried batch_size 16, it still got error

from srgan-pytorch.

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.