Comments (4)
Did you skip the compiling step?
sh make.sh
CC=g++ python build.py
from deformable-convolution-pytorch.
非常感谢您的建议
sun@sunwin:$ cd /home/sun/0newcodedown/deformable-convolution-pytorch-master/0newcodedown/deformable-convolution-pytorch-master$ CC=g++ python build.py
sun@sunwin:
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/0newcodedown/deformable-convolution-pytorch-master$
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:
看起来内存不够用了呢 ╮(╯▽╰)╭
from deformable-convolution-pytorch.
这个测试用到的显存不超过500M,你得检查下显存占用
from deformable-convolution-pytorch.
我关闭了tensorflow 看起来不出现错误啦 感谢\(^o^)/~
sun@sunwin:~/0newcodedown/deformable-convolution-pytorch-master$ python test.py
(1L, 4L, 512L, 512L)
from deformable-convolution-pytorch.
Related Issues (20)
- 梯度测试不通过 HOT 21
- Extend this to 1-D HOT 8
- performance issue HOT 4
- How do you embed this module into a structure? HOT 3
- Slow speed HOT 2
- Get the offset_grad
- Build error HOT 4
- Not working on pytorch 0.4.1 HOT 3
- Error occurred
- Different interpretation of def_conv: HOT 1
- offset size
- Problem in test.py
- offset number? HOT 1
- License
- make.sh error
- Is it useful to use dcn on 1x1conv?
- Is it possible that this version can be realized by Tensorflow? HOT 1
- Is it possible to support 3D convolution? HOT 8
- Evaluation of deformable conv nets on real-world problems HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deformable-convolution-pytorch.