Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU size error? #1

Open
ygren opened this issue Dec 18, 2017 · 7 comments
Open

GPU size error? #1

ygren opened this issue Dec 18, 2017 · 7 comments

Comments

@ygren
Copy link

ygren commented Dec 18, 2017

when I execute this command: python simplify.py
the error as follows:
THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCStorage.cu line=58 error=2 : out of memory

My GPU is 1080TI 11G, can you tell me how much computing resources are required for your model?
Thanks!

@bobbens
Copy link
Owner

bobbens commented Dec 18, 2017

Dependent on input image resolution size, but with 11G you should be able to handle fairly large images of at least 1024x1024 although likely quite a bit more. Make sure you have latest pytorch/cuda/cudnn (cudnn makes a big difference in my experience).

@b4zz4
Copy link

b4zz4 commented Dec 28, 2017

The same problem with nvidia K1000

Processing fig06_danshi.png...THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCStorage.c line=82 error=2 : out of memory
./figs.sh: línea 3: 22867 Violación de segmento python simplify.py --img "$IN" --out "$OUT"

image size is 170x224

@ygren
Copy link
Author

ygren commented Jan 7, 2018

@bobbens Thanks! I have run it on my MACBOOK PRO without CUDA,and the python version is 3.6.maybe the reason is python version is 3.6 not 2.7.It's a very amazing job,but the effect is still not ideal. Do you have a plan to release your code of your network structure? I want to do some work on your basis.

@DifanLiu
Copy link

The same problem with nvidia K5200
THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1503966894950/work/torch/lib/THC/generic/THCStorage.c line=79 error=2 : out of memory
What's your pytorch/cuda/cudnn version?
@bobbens
Could you please release your whole code of your project, including the discriminator? Thank you so much!

@bobbens
Copy link
Owner

bobbens commented Feb 20, 2018

@ygren the network structure is actually included in the .t7 file.
Most of my tests have been done using Cuda 9.1, Cudnn 7.5, and a GTX 1080. Using older cards will probably hit memory issues as apparently the torch7 code is much more memory intensive. When I get some time I'll try converting to native pytorch which should be more efficient.

@laoxihongshi
Copy link

i have using Cuda 9.1, Cudnn 7.5, and a GTX 1080,but when i run all the demo cmd,
i have the problem “out of memory”
plz help me

@Gabrielnero000
Copy link

GTX 1050 Ti gives the same error (RuntimeError: CUDA error: out of memory), someone solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants