Code Monkey home page Code Monkey logo

Comments (8)

johanode avatar johanode commented on May 20, 2024

Received the same error. Did you find a solution?

from ai-basketball-analysis.

juzhongguoji avatar juzhongguoji commented on May 20, 2024

ModuleNotFoundError: No module named 'pyopenpose'

I found same error, but similar reason. Recompile openpose, problem solved. Hope this helps.

from ai-basketball-analysis.

braveheartwills avatar braveheartwills commented on May 20, 2024

The same problem I met too. The solution is replace the document "pyopenpose.cp36-win_amd64" which is in the \OpenPose\Release with your own "pyopenpose" file. For example,ใ€€I use "pyopenpose.cp39-win_amd64" which was generated in the openpose project before. '39'means python3.9. So then make a env with python3.9 not python3.6 said here for this project. Do not pip install -r requirments.txt if the python version is not 3.6. Delete the version information in the requirements.txt ,and then pip install it. It definitely will work.

You may meet the error about opWrapper.emplaceAndPop([Datum]). The solution is add the code

vectorDatum = op.VectorDatum([datum])
return datum, opWrapper, vectorDatum
in the end of "def openpose_init" in util.py

and then modify the def getVideoStream in app_helper.py ,add vectorDatum as a input parameter.

That's all!

from ai-basketball-analysis.

EddyLL06 avatar EddyLL06 commented on May 20, 2024

82931c08c6b2d73ce8b4a8a0c1a15ba
@braveheartwills This is what I got following your steps. The import problem is fixed now, but the above problem comes up. Any idea what is happening? What should I do next?

from ai-basketball-analysis.

EddyLL06 avatar EddyLL06 commented on May 20, 2024

f250215662053748a234cdd45875422
a2a4fc54117c598714f555b1c49feea
These are pictures of the code I added in util.py and app_helper.py. I don't really know much about Python, hope I did it correctly.

from ai-basketball-analysis.

braveheartwills avatar braveheartwills commented on May 20, 2024

Sorry I don't know how to paste pictures here, so if you haven't solved the problem, sending email to me directly is all right. My email is "wills&&sunbowtec.com" . replace && with @.

82931c08c6b2d73ce8b4a8a0c1a15ba @braveheartwills This is what I got following your steps. The import problem is fixed now, but the above problem comes up. Any idea what is happening? What should I do next?

Sorry I don't know how to paste pictures here, so if you haven't solved the problem, sending email to me directly is all right. My email is "wills&&sunbowtec.com" . replace && with @.

from ai-basketball-analysis.

undefeatedsoul avatar undefeatedsoul commented on May 20, 2024

I also encountered the import problem of openpose, but his error message is as follows, showing that the dll loading failed: Can not find the corresponding module, do not know what solution?
image

from ai-basketball-analysis.

twobit-five avatar twobit-five commented on May 20, 2024

One solution is to compile from source the OpenPose project and copy the appropriate file from below for your specific python version.

Windows:
/OpenPose/Release/pyopenpose.cp36-win_amd64.pyd
or
Linux:
/OpenPose/openpose/pyopenpose.cpython-36m-x86_64-linux-gnu.so

from ai-basketball-analysis.

Related Issues (19)

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.