Git Product home page Git Product logo

Comments (4)

StandWisdom avatar StandWisdom commented on July 25, 2024

Hi,I also face this problem. when I want to run "/tests/test_dataset.py" to test the trained model.
here is the error, How can i fix it? relly eager

ERROR: test_apply_rotate (main.TestPoseDataset)

Traceback (most recent call last):
File "tests/test_dataset.py", line 152, in test_apply_rotate
image, joints = self.dataset.apply_rotate(image, joints, ig)
File "scripts/dataset.py", line 134, in apply_rotate
a = rot_mat.dot((joints - joint_center).T).T
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'

======================================================================
ERROR: test_flic (main.TestPoseDataset)

Traceback (most recent call last):
File "tests/test_dataset.py", line 190, in test_flic
image, joints, ignore_joints = dataset.get_example(i)
File "scripts/dataset.py", line 175, in get_example
image, joints = self.apply_rotate(image, joints, ignore_joints)
File "scripts/dataset.py", line 134, in apply_rotate
a = rot_mat.dot((joints - joint_center).T).T
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'

from deeppose.

StandWisdom avatar StandWisdom commented on July 25, 2024

Is Python's version problem? My python version is 2.7.x

from deeppose.

StandWisdom avatar StandWisdom commented on July 25, 2024

@handale88 I have solved this problem. This problem result from '/script/detaset.py' line:133
"rot_mat = np.matrix('{} {}; {} {}'.format(c, -s, s, c))" , U can use "print(rot_mat)" to find the reason .rot_mat is one matrix.(>>'u'.{0 0.0,-0.0 1.0})

I rewrite this code to " rot_mat = np.array([[1.0,0.0],[-0.0,1.0]]) " ,and then the program works correctly!

from deeppose.

glitterzhang avatar glitterzhang commented on July 25, 2024

solved by referring blue-yonder/tsfresh#485 (comment)

from deeppose.

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.