wangzt-halo / das

Distribution-Aware Single-Stage Models for Multi-Person 3D Pose Estimation
Apache License 2.0
42 stars 8 forks source link

About type error(triggers by datalodaer) #6

Open JohnW2all opened 1 year ago

JohnW2all commented 1 year ago

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 commented 1 year ago

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

JohnW2all commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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