Coder Social home page Coder Social logo

test error ! about deformable-convolution-pytorch HOT 4 OPEN

1zb avatar 1zb commented on August 17, 2024
test error !

from deformable-convolution-pytorch.

Comments (4)

1zb avatar 1zb commented on August 17, 2024

Did you skip the compiling step?

sh make.sh
CC=g++ python build.py

from deformable-convolution-pytorch.

zilesazoyi2 avatar zilesazoyi2 commented on August 17, 2024

非常感谢您的建议  
sun@sunwin:$ cd /home/sun/0newcodedown/deformable-convolution-pytorch-master
sun@sunwin:
/0newcodedown/deformable-convolution-pytorch-master$ CC=g++ python build.py
Including CUDA code.
/home/sun/0newcodedown/deformable-convolution-pytorch-master
generating /tmp/tmpRX3mGT/_deform_conv.c
setting the current directory to '/tmp/tmpRX3mGT'
running build_ext
building '_deform_conv' extension
creating home
creating home/sun
creating home/sun/0newcodedown
creating home/sun/0newcodedown/deformable-convolution-pytorch-master
creating home/sun/0newcodedown/deformable-convolution-pytorch-master/src
g++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DWITH_CUDA -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/usr/include/python2.7 -c _deform_conv.c -o ./_deform_conv.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
g++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DWITH_CUDA -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/usr/include/python2.7 -c /home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv.c -o ./home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
g++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DWITH_CUDA -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/usr/include/python2.7 -c /home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv_cuda.c -o ./home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv_cuda.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security ./_deform_conv.o ./home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv.o ./home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv_cuda.o /home/sun/0newcodedown/deformable-convolution-pytorch-master/src/deform_conv_cuda_kernel.cu.o -o ./_deform_conv.so
sun@sunwin:/0newcodedown/deformable-convolution-pytorch-master$ python test.py
THCudaCheck FAIL file=/b/wheel/pytorch-src/torch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory
Traceback (most recent call last):
File "test.py", line 20, in
bias=False).cuda()
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 147, in cuda
return self._apply(lambda t: t.cuda(device_id))
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 124, in _apply
param.data = fn(param.data)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 147, in
return self._apply(lambda t: t.cuda(device_id))
File "/usr/local/lib/python2.7/dist-packages/torch/_utils.py", line 65, in cuda
return new_type(self.size()).copy
(self, async)
File "/usr/local/lib/python2.7/dist-packages/torch/cuda/init.py", line 275, in new
return super(_CudaBase, cls).new(cls, *args, **kwargs)
RuntimeError: cuda runtime error (2) : out of memory at /b/wheel/pytorch-src/torch/lib/THC/generic/THCStorage.cu:66
sun@sunwin:
/0newcodedown/deformable-convolution-pytorch-master$
看起来内存不够用了呢 ╮(╯▽╰)╭ 

from deformable-convolution-pytorch.

1zb avatar 1zb commented on August 17, 2024

这个测试用到的显存不超过500M,你得检查下显存占用

from deformable-convolution-pytorch.

zilesazoyi2 avatar zilesazoyi2 commented on August 17, 2024

我关闭了tensorflow 看起来不出现错误啦 感谢\(^o^)/~
sun@sunwin:~/0newcodedown/deformable-convolution-pytorch-master$ python test.py
(1L, 4L, 512L, 512L)

from deformable-convolution-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.