Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About type error(triggers by datalodaer) #6

Open
JohnW2all opened this issue Feb 14, 2023 · 10 comments
Open

About type error(triggers by datalodaer) #6

JohnW2all opened this issue Feb 14, 2023 · 10 comments

Comments

@JohnW2all
Copy link

Environment:
image

Dataset:
image
image
image
image
image

Using a testing command “python tools/test.py configs/das/exp_mupots.py weights/latest.pth --eval pck”, triggering an error:
image

@wangzt-halo
Copy link
Owner

pose_vis should be an array contained in the annotation file. Could you print out its value?

@JohnW2all
Copy link
Author

JohnW2all commented Feb 16, 2023

pose_vis should be an array contained in the annotation file. Could you print out its value?

The value of pose_vis is "True", so the last sentence in the last picture says"TypeError: ' bool' object is not subscriptable".
image

Then I print the "ann['keypoints_vis']", it's an array full of "True".
image
image

Then I print the "ann_info".
image
image

I haven't changed the source code, so I'm confused about what went wrong.
I would like to ask if there are any errors in my coco dataset folder?
image
image

Thanks!

@wangzt-halo
Copy link
Owner

ok. you can try to replace the code if pose_vis[self.ROOT_IDX][0] == 0: with if pose_vis[self.ROOT_IDX] == 0: and see if this would work.

@JohnW2all
Copy link
Author

ok. you can try to replace the code if pose_vis[self.ROOT_IDX][0] == 0: with if pose_vis[self.ROOT_IDX] == 0: and see if this would work.

I truly appreciate your timely help. It works!

After this a few small errors appear, now I am trying to fix it.
image

@JohnW2all
Copy link
Author

JohnW2all commented Feb 19, 2023

ok. you can try to replace the code if pose_vis[self.ROOT_IDX][0] == 0: with if pose_vis[self.ROOT_IDX] == 0: and see if this would work.

Excuse me,I met a error about SVD and I don't know how to deal with this problem.
image

I printed the H and all the variables associated with it.
image
image

There are nan values among them. May I ask if this is the cause of the problem and could you please tell me how to fix it?
Thanks so much!

@wangzt-halo
Copy link
Owner

It seems that the problem comes from the wrong predictions. Are the outputs all `nan' for every data sample? If so, maybe there is something wrong with the trained model.

@JohnW2all
Copy link
Author

JohnW2all commented Feb 20, 2023

Yes, all the output variable predict in the terminal contains nan.
I noticed that the terminal told me that the model and the weights did not match, which may have caused the problem.
image

Oh, I think I see the cause of the problem. Because I use the "latest.pth" provided by you, which is trained in the CMU Panoptic dataset.
image
And I use it incorrectly to predict in MuPoTS-3D dataset.

Thanks!

@tribeband
Copy link

I am not able to download the muco/human3.6m data from the link provided. will you please help me to provide another link?

@wangzt-halo
Copy link
Owner

@tribeband Because this data does not belong to us, we are sorry that we cannot provide you with another link.
But I checked the original link and it is still available for download.

@tribeband
Copy link

曾经我下载过,但是下完之后解压出错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants