GengDavid / pytorch-cpn

A PyTorch re-implementation of CPN (Cascaded Pyramid Network for Multi-Person Pose Estimation)
GNU General Public License v3.0
484 stars 98 forks source link

questions about test.py #12

Closed Liz66666 closed 6 years ago

Liz66666 commented 6 years ago

hi, thanks for your pytorch code! I have seen your code about test a model, but I don't know why 4x and 4y should plus 2(line 115 and 116)? And I have also seen that tf-version plus 2 too. Thanks! https://github.com/GengDavid/pytorch-cpn/blob/48696a9203ad6dac78cf7e9e74b572b77f30aad9/256.192.model/test.py#L110-L117

GengDavid commented 6 years ago

Because we want to recover the precision lost costed in the generation of label maps. Also can refer to this issue.

Liz66666 commented 6 years ago

thanks for your reply!