Giter Site home page Giter Site logo

Python wrapper problem about caffe-windows HOT 7 CLOSED

happynear avatar happynear commented on August 22, 2024
Python wrapper problem

from caffe-windows.

Comments (7)

happynear avatar happynear commented on August 22, 2024

I guess you haven't add ./3rdparty/bin folder to your 'PATH' environment variable and restart your computer.
To check if you successfully add the path, you should firstly run ./bin/mainbuilder.exe without errors.

from caffe-windows.

alitou avatar alitou commented on August 22, 2024

MainCaller.exe works without errors.I add the bin folder to PATH.But still have the problem.When I want to import caffe I got the error "No module named caffe", then I managed to use this:
caffe_root = '../(my caffe root)' # this file is expected to be in {caffe_root}/examples
import sys
sys.path.insert(0, caffe_root + 'python')
and I got the above error.

from caffe-windows.

happynear avatar happynear commented on August 22, 2024

Notice that _caffe.pyd is generated to ./python/caffe. After you have add caffe_root + 'python' to sys.path. To import caffe module, you should run:

import caffe._caffe

or

from caffe import _caffe

from caffe-windows.

alitou avatar alitou commented on August 22, 2024

Yes it is generated at the path.Still get the same error on importing Net and SGDsolver.

from caffe-windows.

alitou avatar alitou commented on August 22, 2024

I used your new 3rdparty dependencies and Now I get the error on import caffe.imagenet:
No module named imagenet

from caffe-windows.

happynear avatar happynear commented on August 22, 2024

It seems that there is no init.py in imagenet folder. Just create a empty one.

from caffe-windows.

ynpoornima avatar ynpoornima commented on August 22, 2024

Hi all,
I have the same problem. Did it get resolved?

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.