Anyone has this problem?
how resolved this ?
if i do :
python ./tools/demo.py --cpu --net vgg16
he is print :
...
I0505 14:45:53.473222 7095 net.cpp:137] Memory required for data: 117496524
I0505 14:45:53.473233 7095 layer_factory.hpp:77] Creating layer proposal
I0505 14:45:53.515135 7095 net.cpp:84] Creating Layer proposal
I0505 14:45:53.515180 7095 net.cpp:406] proposal <- rpn_cls_prob_reshape
I0505 14:45:53.515198 7095 net.cpp:406] proposal <- rpn_bbox_pred
I0505 14:45:53.515211 7095 net.cpp:406] proposal <- im_info
I0505 14:45:53.515228 7095 net.cpp:380] proposal -> rois
Traceback (most recent call last):
File "./tools/demo.py", line 134, in
net = caffe.Net(prototxt, caffemodel, caffe.TEST)
AttributeError: can't set attribute
I have encountered the same problem, may I ask you to solve what?
refer to this link: https://github.com/rbgirshick/py-faster-rcnn/issues/509?_pjax=%23js-repo-pjax-container#issuecomment-284133868
I met the same issue as yours.
After I merge code from caffe. I forgot to delete below code.
maybe you need to delete self_.attr("phase") = static_cast<int>(this->phase_); in caffe-fast-rcnn/include/caffe/layers/python_layer.hpp
then run make all -j8 and make pycaffe -j8.
BTW: I did NOT run mkdir build && cd build and cmake ... It's still OK.
Wish you luck.
This guide is from this link: https://github.com/rbgirshick/py-faster-rcnn/issues/509?_pjax=%23js-repo-pjax-container#issuecomment-284133868
To enable supports of CUDNNv5:
1).
cd caffe-fast-rcnn
git remote add caffe https://github.com/BVLC/caffe.git
git fetch caffe
git merge -X theirs caffe/master
2).
remove self_.attr("phase") = static_cast<int>(this->phase_); from include/caffe/layers/python_layer.hpp after merging.
3). (in caffe-fast-rcnn)
- mkdir build && cd build
- cmake ..
- make all -j8
- make pycaffe -j8
Most helpful comment
refer to this link: https://github.com/rbgirshick/py-faster-rcnn/issues/509?_pjax=%23js-repo-pjax-container#issuecomment-284133868
I met the same issue as yours.
After I merge code from caffe. I forgot to delete below code.
maybe you need to delete
self_.attr("phase") = static_cast<int>(this->phase_);incaffe-fast-rcnn/include/caffe/layers/python_layer.hppthen run
make all -j8andmake pycaffe -j8.BTW: I did NOT run
mkdir build && cd buildandcmake ... It's still OK.Wish you luck.
This guide is from this link: https://github.com/rbgirshick/py-faster-rcnn/issues/509?_pjax=%23js-repo-pjax-container#issuecomment-284133868