PyraNet icon indicating copy to clipboard operation
PyraNet copied to clipboard

How to generate 'scale' and 'objpos'?

Open Binyr opened this issue 6 years ago • 5 comments

Hi, Thanks for your code! The 'scale' and 'objpos' is also not provided offictially. How do you generate them? Expect for your guidance! Thank you!

Binyr avatar Feb 15 '19 11:02 Binyr

I read your paper again. 'objpos' is image center. But I still do not know how to generate 'scale'.

Binyr avatar Feb 15 '19 14:02 Binyr

You can find the code to generate the JSON file here: https://github.com/bearpaw/pytorch-pose/blob/master/miscs/gen_lsp.m

Actually, it is borrowed from Convolutional Pose Machine: https://github.com/shihenw/convolutional-pose-machines-release/blob/a345bc5c760073792b6b5ec29d3bde01557a5a9b/training/genJSON.m

I didn't dig into the equations. But it should be some statistics from the training set (e.g., the average height of persons are 200px or something like that).

bearpaw avatar Feb 15 '19 17:02 bearpaw

Another thing of CPM is that, it uses additional training data from LSP and LSP extended to train the model for the MPII dataset. In this case, we want to make sure that persons in different datasets should have roughly the same scale. That's how CPM computes the scales.

bearpaw avatar Feb 15 '19 17:02 bearpaw

Thanks for your reply! I am confused by this complicate computation. It seems that joints location is used to generate 'scale'. Could I use it directly for evaluate my model?

Binyr avatar Feb 16 '19 06:02 Binyr

@Binyr hi,Would like to ask the question about the scale to understand?

xiaoxin05 avatar Jan 08 '21 01:01 xiaoxin05