happynear / happynear/caffe-windows

How to use Python

Open
#283 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.3k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

Hi
I have successfully build caffe-windows
(VS2017 cuda 9.1 ) with python 3 (using 2015 toolset)
![image](https://user-images.githubusercontent.com/17617515/41784560-ba094562-7648-11e8-9864-57571f3b3af1.png)

Now I don't know how to use this in python project.

How do I import the python
tried using

> import caffe

and the result was

> ModuleNotFoundError: No module named 'caffe'

tried a suggestion found in issues - ([https://github.com/happynear/caffe-windows/issues/225]#225)

> import sys
> sys.path.append("/caffe-windows/python")
> import caffe

this also did not work received this error
> import caffe
>
> Traceback (most recent call last):
> File "", line 1, in
> File "C:\Users\xxxx\source\repos\caffe-windows-ms\caffe-windows-ms\python\caffe\__init__.py", line 1, in
> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
> File "C:\Users\xxxx\source\repos\caffe-windows-ms\caffe-windows-ms\python\caffe\pycaffe.py", line 13, in
> from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
> ModuleNotFoundError: No module named 'caffe._caffe'

Also tried coping into anconda\lib\site-packges (as suggested by [http://www.shaneahmed.com/2017/07/build-caffe-pycaffe-and-matcaffe-on.html](http://www.shaneahmed.com/2017/07/build-caffe-pycaffe-and-matcaffe-on.html))
but got the same error.

I would be glad for guidance.
Thanks in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.