简体   繁体   English

ImportError:没有名为spatial_dropout,caffe,ENet的模块

[英]ImportError: No module named spatial_dropout, caffe, ENet

When I try to train this net i got an error: 当我尝试训练该网络时,出现错误:

 ImportError: No module named spatial_dropout

Does anybody know how to fix this? 有人知道如何解决此问题吗?

I tried to use this instruction. 我尝试使用指令。

Make sure you've reset your $CAFFE_PATH , so it's set to the absolute path of caffe-enet , and that you've done: 确保已重置$CAFFE_PATH ,因此将其设置为caffe-enet的绝对路径,并且已完成:

export PYTHONPATH="$CAFFE_PATH/python:$PYTHONPATH"

This fixed it for me. 这为我解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM