[Caffe]:关于Check failed: registry.count(type) == 0 (1 vs. 0)错误
2017-05-22 10:09
501 查看
错误描述
当我在终端下用caffe命令对带有PythonLayer的网络训练时,出现了如下错误。该错误提示Layer的卷积类型已经注册过了。为什么会出现这个错误呢?
其实是,博主机子上有多个Caffe版本,该版本的pycaffe接口没有被指定正确。
解决方法
我的一种方法是在train.sh脚本文件开头,添加指定PYTHONPATH。即,在train.sh文件中
#train.sh export PYTHONPATH=/path/to/your/caffe/python/:$PYTHONPATH #把caffe/python路径加在PYTHONPATH最前面,优先检索 TOOLS=/path/to/your/caffe/build/tools #指定命令路径,即指定caffe版本 $TOOLS/caffe train --solver="" blablabla...
加完路径后一切就恢复正常啦。
2017-5-22 记。
相关文章推荐
- 【边喝caffee边Caffe 】(三) Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type
- 【神经网络与深度学习】Caffe训练执行时爆出的Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type
- caffe,运行fast-rcnn出现Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: ROIPooling
- caffe问题Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python
- Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type: Input (known types: Input )
- Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python
- windows7下解决caffe check failed registry.count(type) == 1(0 vs. 1) unknown layer type问题
- Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python
- Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type
- Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type
- Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type: Input (known types: Input )
- Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: ImageData
- Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: ConvolutionDepthwise
- Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type: Input (known types: Input )
- windows7下解决caffe check failed registry.count(type) == 1(0 vs. 1) unknown layer type问题
- [Caffe]:关于Check failed: shape[i] >= 0 (-2 vs. 0)错误
- libcaffe Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Input (known types: )
- Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type
- VS 错误: 未找到与约束contractname Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
- 关于Chrome报“Application Cache Error event: Invalid manifest mime type (application/x-ms-manifest)”错误的问题