deep-image-prior icon indicating copy to clipboard operation
deep-image-prior copied to clipboard

Inpainting: CUDA OOM and Inconsistent Tensor Sizes

Open turbo opened this issue 6 years ago • 2 comments

For all example images+masks in the inpainting example, I get this error for CUDA:

RuntimeError: cuda runtime error (2) : out of memory at ~/pytorch/aten/src/THC/generic/THCStorage.cu:58

and for dtype = torch.FloatTensor I get this:

RuntimeError: inconsistent tensor sizes at ~/pytorch/aten/src/TH/generic/THTensorMath.c:2864

Python 2, macOS 10.12.6, CUDA 9.0.176, cudnn 9.0 v7

turbo avatar Dec 04 '17 19:12 turbo

This does not occur on linux (no CUDA).

turbo avatar Dec 04 '17 19:12 turbo

I also got an erroron Linux(no CUDA) when run the inpainting: RuntimeError: inconsistent tensor size at /opt/conda/conda-bld/libtorch_1493851953343/work/pytorch-0.1.12/torch/lib/TH/generic/THTensorCopy.c:51

haimiaozh avatar Dec 06 '17 07:12 haimiaozh