Giter Club home page Giter Club logo

Comments (9)

jacobrosenthal avatar jacobrosenthal commented on July 17, 2024

from ell.

ack72tdp avatar ack72tdp commented on July 17, 2024

Thanks Jacob. It helped move forward bit... However I run into few other issues..

(py36) root@8fa27a83d7dd:~/ELL/build/tutorials/vision/gettingStarted# python darknetDemo.py
Traceback (most recent call last):
File "darknetDemo.py", line 4, in
import cv2
ModuleNotFoundError: No module named 'cv2'

(py36) root@8fa27a83d7dd:~/ELL/build/tutorials/vision/gettingStarted# sh compile_darknetReference.sh

Compiling darknetReference from ELL, emitting LLVM IR
Command line parse error:
Cannot read from specified input map file: darknetReference.map

Parsing darknetReference from ELL, generating SWIG interface
Command line parse error:
Cannot read from specified input map file: darknetReference.map

Compiling darknetReference LLVM IR, generating model object file
compile_darknetReference.sh: 9: compile_darknetReference.sh: llc: not found

Running disutils setup to compile and link model + SWIG wrappers into Python module, and install package locally
running build
running build_ext
building '_darknetReference' extension
swigging darknetReference.i to darknetReference_wrap.cpp
swig -python -modern -c++ -py3 -Fmicrosoft -I/root/ELL/interfaces/common -I/root/ELL/interfaces/common/include -I/root/ELL/libraries/emitters/include -o darknetReference_wrap.cpp darknetReference.i
Unable to find file 'darknetReference.i'.
error: command 'swig' failed with exit status 1

from ell.

ack72tdp avatar ack72tdp commented on July 17, 2024

OR with microsoft cognitive kit

(py36) root@8fa27a83d7dd:~/ELL/build/tutorials/vision/gettingStarted# python cntkDemo.py
Traceback (most recent call last):
File "cntkDemo.py", line 4, in
import cv2
ModuleNotFoundError: No module named 'cv2'

from ell.

jacobrosenthal avatar jacobrosenthal commented on July 17, 2024

ModuleNotFoundError: No module named 'cv2'
Looks like you need opencv

Thats covered here:
https://github.com/Microsoft/ELL/blob/4d3c0cc6ed13cc7885150ff74b5d3788f3ee36e8/tutorials/vision/gettingStarted/opencv.md
conda install -c conda-forge opencv

I actually got stuck here as well (on osx) with this issue:

ImportError: dlopen(/Users/jacobrosenthal/miniconda3/envs/py36/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblasp-r0.2.19.dylib
  Referenced from: /Users/jacobrosenthal/miniconda3/envs/py36/lib/libopencv_hdf.3.2.0.dylib
  Reason: image not found

even though i installed openblas per instructions with both brew brew install homebrew/science/openblas and conda conda install openblas=0.2.19

This issue said conda-forge/opencv-feedstock#69
conda update --all -c conda-forge

Which got me up and running with python darknetDemo.py

from ell.

ack72tdp avatar ack72tdp commented on July 17, 2024

Thanks a lot Jacob. Unfortunately it didn't work in my case after running all 3 below..

conda install -c conda-forge opencv
conda install openblas=0.2.19
conda update --all -c conda-forge

(py36) root@8fa27a83d7dd:~/ELL/build/tutorials/vision/gettingStarted# python cntkDemo.py
Traceback (most recent call last):
File "cntkDemo.py", line 4, in
import cv2
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

(py36) root@8fa27a83d7dd:~/ELL/build/tutorials/vision/gettingStarted# python darknetDemo.py
Traceback (most recent call last):
File "darknetDemo.py", line 4, in
import cv2
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

from ell.

jacobrosenthal avatar jacobrosenthal commented on July 17, 2024

Probably unrelated, but note I didnt do conda install -c conda-forge opencv

Youve got a different error there you should google
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

from ell.

ack72tdp avatar ack72tdp commented on July 17, 2024

Thanks a lot Jacob. I am able to move forward much more.. Appreciate all your help.

from ell.

jacobrosenthal avatar jacobrosenthal commented on July 17, 2024

Care to post your fix for others? Also if this is resolved please close your issue.

from ell.

ack72tdp avatar ack72tdp commented on July 17, 2024

Certainly, all I did is follow step 5 ELL Python Language Bindings and Step 6.Microsoft Cognitive Toolkit install steps again and then used Step 7:Darknet model to .. run .. microsoft cognitive toolkit didn't quite work.. but darnet model seems to atleast run, but also bailed out at the end ...

Any case we can close this here and I opened new..

from ell.

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.