Comments (4)
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.
Is Python's version problem? My python version is 2.7.x
from deeppose.
@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.
solved by referring blue-yonder/tsfresh#485 (comment)
from deeppose.
Related Issues (20)
- I could'nt run deeppose prog.
- Evaluating FLIC model
- Pretrained Models
- Unresolved references in evaluate_flic.py HOT 1
- Train or test with custom dataset
- strange contrast normalization HOT 1
- invalid device ordinal HOT 7
- Memory problem HOT 4
- TypeError: rotate() got an unexpected keyword argument 'center' HOT 1
- How to use the trained Alexnet testing other pics?
- In Python 2.7 env, stuck after "test_joints.csv is ready" HOT 1
- "evaluate_Flic.py" parameter 'trans'
- Prediction for Real Time Video
- how to predict
- Download failure with datasets/download.sh HOT 2
- tr_plus_indices.mat not found HOT 4
- How to run HOT 1
- Include "act_id" of MPII annotations to mpii_dataset.py
- where is transform.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.