happynear / happynear/caffe-windows
TypeError: No to_python (by-value) converter found for C++ type: class caffe::LayerParameter
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
Hello All,
I am trying to get python layers working on the windows version of Caffe on visual studio. I am using a CPU only solution with everything out of the box. My python layer is a dummy one for now:
import caffe
class custom_class(caffe.Layer):
def setup(self, bottom, top):
pass
def forward(self, bottom, top):
pass
def reshape(self, bottom, top):
pass
def backward(self, top, propagate_down, bottom):
pass
I am using miniconda2 (2.7.14 python) as recommended by this caffe-windows repository.
I surfed the internet regarding the above issue and it seems like the issue is related to the layer registry not being shared across caffe (I saw someone recommending using dynamic boost to make sure the registry is shared, but their solution uses only cmake and I would like to use visual studio).
Maybe the above statement is due to my lack of understanding of caffe, as I am new to the code base.
Has anyone encountered this issue? Any hints on how to solve it would be appreciated.
Contributor guide
Assessment
This issue has not been assessed yet.