Giter Site home page Giter Site logo

Comments (23)

happynear avatar happynear commented on July 21, 2024

The python dll file are generated to ./python/caffe, named as _caffe.pyd.

from caffe-windows.

khogeland avatar khogeland commented on July 21, 2024

the .pyd file is where it should be, but isn't being loaded. dependency walker shows no issues. any suggestions?

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

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.

khogeland avatar khogeland commented on July 21, 2024

I deleted everything and retried in a different location, no luck :(

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

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.

khogeland avatar khogeland commented on July 21, 2024

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.

happynear avatar happynear commented on July 21, 2024

I'm sad that I can't help you to make it work. Good luck with your Ubuntu.

from caffe-windows.

drakh avatar drakh commented on July 21, 2024

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.

happynear avatar happynear commented on July 21, 2024

There is no need to copy all dlls. Please just add ./3rdparty/bin to the environment variable PATH.

from caffe-windows.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

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.

happynear avatar happynear commented on July 21, 2024

@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.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

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.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

I solved the problem, thank you all

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

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.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

I just found some missing dependencies

from caffe-windows.

happynear avatar happynear commented on July 21, 2024

OK, I know that.

from caffe-windows.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

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.

happynear avatar happynear commented on July 21, 2024

Transformer is in ./python/caffe/io.py. I guess there's some thing wrong with sys.path?

from caffe-windows.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

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.

happynear avatar happynear commented on July 21, 2024

Do you really use the code from this repo?

from caffe-windows.

alexandr-smirnov avatar alexandr-smirnov commented on July 21, 2024

Partly yes

from caffe-windows.

Coderx7 avatar Coderx7 commented on July 21, 2024

@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.

YIFanH avatar YIFanH commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.