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

AttributeError: can't set attribute #565

Open
ghost opened this issue May 5, 2017 · 2 comments
Open

AttributeError: can't set attribute #565

ghost opened this issue May 5, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented May 5, 2017

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

@Itanq
Copy link

Itanq commented May 7, 2017

I have encountered the same problem, may I ask you to solve what?

@galian123
Copy link

galian123 commented Dec 12, 2017

refer to this link: #509

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: #509

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

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

2 participants