Comments (23)
The python dll file are generated to ./python/caffe, named as _caffe.pyd
.
from caffe-windows.
the .pyd file is where it should be, but isn't being loaded. dependency walker shows no issues. any suggestions?
from caffe-windows.
I'm sorry I have no idea about your problem. I'm not quiet familiar with python.
I guess maybe the path is too deep? One of my friend used to compile caffe in the windows temporary directory, and he came across similar error. You can try a more shallow folder, such as mine: D:/deeplearning/caffe-windows
from caffe-windows.
I deleted everything and retried in a different location, no luck :(
from caffe-windows.
Have you added the ./3rdparty/bin folder to your environment variable PATH
? To check this, please double click ./bin/MainCaller.exe. If you haven't added the folder, you will get a error like
"The program can't start because xxx.dll is missing from your computer. Try reinstalling the program to fix this problem."
from caffe-windows.
I ended up compiling on ubuntu instead. It may depend on your GPU - I had some trouble getting CUDA to work probably on ubuntu too.
from caffe-windows.
I'm sad that I can't help you to make it work. Good luck with your Ubuntu.
from caffe-windows.
i just make it run. copied all dlls to caffe python folder . you can find prepared zip which is working on my system (win7, 64 bit) here https://github.com/drakh/caffe-win-python-anaconda
from caffe-windows.
There is no need to copy all dlls. Please just add ./3rdparty/bin
to the environment variable PATH
.
from caffe-windows.
drakh, thanks for your caffe build, but I have a problem like this
ImportError Traceback (most recent call last)
in ()
----> 1 import caffe
C:\Users\user\Anaconda\lib\caffe__init__.py in ()
----> 1 from .pycaffe import Net, SGDSolver
2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver
3 from .proto.caffe_pb2 import TRAIN, TEST
4 from .classifier import Classifier
5 from .detector import Detector
C:\Users\user\Anaconda\lib\caffe\pycaffe.py in ()
11 import numpy as np
12
---> 13 from ._caffe import Net, SGDSolver
14 import caffe.io
15
ImportError: DLL load failed: module is not found
Can you help me to understand, what is my problem?
from caffe-windows.
@alexandr-smirnov
Please help me check if you have add ./3rdparty/bin
to the environment variable PATH
. A lot of people forgot this step. However, it seems that more guys fail to run python wrapper. Please help me rule out some of the reasons.
from caffe-windows.
I have installed PATH to ./3rdparty/bin, please, check content of this directory, which I have https://www.dropbox.com/s/kbpdk2w109dwxwf/bin.7z?dl=0
from caffe-windows.
I solved the problem, thank you all
from caffe-windows.
lol. Because of the greate firewall of China, I am still downloading your bin.7z archive...
Whatever, could you tell me what has happened?
from caffe-windows.
I just found some missing dependencies
from caffe-windows.
OK, I know that.
from caffe-windows.
Can you help me again? I have a problem in the class 'caffe.Classifier' constructor:
self.transformer = caffe.io.Transformer(
{in_: self.blobs[in_].data.shape})
AttributeError: 'module' object has no attribute 'Transformer'
from caffe-windows.
Transformer is in ./python/caffe/io.py. I guess there's some thing wrong with sys.path?
from caffe-windows.
I solved this problem too. I dont know why, but my version of the file io.py did not contain class Transformer, and I found another version.
from caffe-windows.
Do you really use the code from this repo?
from caffe-windows.
Partly yes
from caffe-windows.
@alexandr-smirnov : I'm having the same problem, what exactly was your problem? which dependencies were you missing?
ImportError Traceback (most recent call last)
<ipython-input-1-e7a8ec94e861> in <module>()
8 sys.path.insert(0, caffe_root + 'python')
9
---> 10 import caffe
L:\Anaconda2\lib\site-packages\caffe\__init__.py in <module>()
----> 1 from .pycaffe import Net, SGDSolver
2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver
3 from .proto.caffe_pb2 import TRAIN, TEST
4 from .classifier import Classifier
5 from .detector import Detector
L:\Anaconda2\lib\site-packages\caffe\pycaffe.py in <module>()
11 import numpy as np
12
---> 13 from ._caffe import Net, SGDSolver
14 import caffe.io
15
ImportError: DLL load failed: The specified module could not be found.```
from caffe-windows.
I used the way you solved the problems, but it can not solve my the same problems! @alexandr-smirnov
from caffe-windows.
Related Issues (20)
- how to use Contrastive/Triplet loss layer? Is there any train_val.ptototxt example?
- Accessing .\windows
- building caffe issue fatal error LNK1104 cannot open file python36.lib HOT 6
- can not compile in the windows
- python3.5报错LINK : fatal error LNK1104: 无法打开文件“python36.lib” HOT 2
- Can not find the prototxt including the LabelSpecificAdd
- fatal error: caffe/proto/caffe.pb.h: No such file or directory HOT 1
- softmax_loss = 0 ,under ubuntu16.04,cuda10,opencv 3.4.5
- caffe_pb2.py has no LabelMap() HOT 1
- win10+cuda10+cudnn7.3编译出现MSB271错误? HOT 3
- 编译出现:InitLogLevelPipe错误
- python3.5
- Compile on ubuntu
- mnist demo failed
- compile error on win10 + VS2017 + cuda9
- after deleting a Net instance, the GPU memory is not released
- 求助大佬,win7 64位,vs2015+cuda10.2 环境下编译需要如何修改啊?
- 0 projects, projects or modules unavailable
- cuda11.1+win10+vs2015+rtx3090 NetParameter problem
- libcaffe编译成功,pycaffe 编译失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffe-windows.