Code Monkey home page Code Monkey logo

Comments (12)

xingyizhou avatar xingyizhou commented on August 29, 2024 1

Yes, in src folder, run python demo.py -demo /path/to/image [-loadModel /path/to/image].

from pytorch-pose-hg-3d.

xyz2357 avatar xyz2357 commented on August 29, 2024 1

It seems that directly put model in src/ is a better idea, because of the code
model = torch.load('hgreg-3d.pth').cuda() in demo.py line 15 https://github.com/xingyizhou/pytorch-pose-hg-3d/blob/84ad44e7a8aa15307b9a371ce85b3dee8d5ad2dc/src/demo.py#L15

from pytorch-pose-hg-3d.

xingyizhou avatar xingyizhou commented on August 29, 2024 1

It seems a pytorch installation issue. Please check the pytorch homepage.

from pytorch-pose-hg-3d.

bilawal-mahmood avatar bilawal-mahmood commented on August 29, 2024 1

'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
I am still getting this error. can someone help me solve this. I am using windows and python 2 does not have pytorch. not even for virtual enviroment

from pytorch-pose-hg-3d.

manza-ari avatar manza-ari commented on August 29, 2024

I dont know but demo.py is not working and giving error.

error

from pytorch-pose-hg-3d.

manza-ari avatar manza-ari commented on August 29, 2024

Thank you so much for all your posts and help.

But still, I am unable solve the issue. Did you make this using Python 2.7?

from pytorch-pose-hg-3d.

xingyizhou avatar xingyizhou commented on August 29, 2024

Yes, I am using python 2.7.

from pytorch-pose-hg-3d.

udion avatar udion commented on August 29, 2024

I am getting the following error, seems like pre-trained model is corrupted?

image

Note that the hgreg-3d.pth is present in the same directory as demo.py

from pytorch-pose-hg-3d.

xingyizhou avatar xingyizhou commented on August 29, 2024

Hi,
I have only tested my model in python 2. Python 3 is not supported yet. here is a python3 compactable version (not tested) which you can train the model yourself.

from pytorch-pose-hg-3d.

manza-ari avatar manza-ari commented on August 29, 2024

Hi udion,

I have resolved the issue by setting a virtual environment of Python 2 and it worked absolutely fine. It is an easy and convenient way to run the testing. Though the author has released for Python 3. Please ask me if I can help you with screenshots.

from pytorch-pose-hg-3d.

xingyizhou avatar xingyizhou commented on August 29, 2024

Thanks @kanza-ali !

from pytorch-pose-hg-3d.

bilawal-mahmood avatar bilawal-mahmood commented on August 29, 2024

image

I am still getting this error as i change the code for python 3. can you help @kanza-ali

from pytorch-pose-hg-3d.

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.