princeton-vl / pytorch_stacked_hourglass

Pytorch implementation of the ECCV 2016 paper "Stacked Hourglass Networks for Human Pose Estimation"
BSD 3-Clause "New" or "Revised" License
469 stars 94 forks source link

keypoints locate on same position #12

Closed acmff22 closed 4 years ago

acmff22 commented 4 years ago

I train the network using my own dataset to detect keypoints on objects, but during test stage, detected keypoints locate on same location in images. I wonder what mistakes may cause this? Thank you!

crockwell commented 4 years ago

Can you please clarify? Are you saying that keypoints predicted are at the same location in all test images? How is your training and validation loss?

acmff22 commented 4 years ago

I trained network using synthetic images like these, the objects on images are rendered using 3D models. synthetic

the losses are low and I test the model using images blow, the objects in these images are also rendered, the results are good near

but when I test the model using real images, like these. real For all test images, the predicted keypoints are located on the center of images. I know that difference between real and synthetic images will cause the bad results, but why the predicted keypoints on real images will locate on the center of images?

crockwell commented 4 years ago

Sorry, on the top of my head I do not know exactly what could be causing your error. I'd recommend visualizing heatmap predictions in both cases to see what is going wrong. Perhaps validating with real images during training would give you some ideas on what is happening.