some question on preprocessing mpii
nitba opened this issue · 1 comments
nitba commented
Hi @bearpaw ,
Thank you so much for your great job,
I have one question when this condition occur in dataset? what kind of situations it cares about
pytorch-pose/pose/utils/transforms.py
Line 140 in 0f8ace7
Thanks,
bearpaw commented
if new_size < 2:
return torch.zeros(res[0], res[1], img.shape[2]) \
if len(img.shape) > 2 else torch.zeros(res[0], res[1])
If the cropped region is less than 2 pixel, then it's just a one-pixel region. In this case, we just return a "blank" image with predefined resolution (e.g. 256x256).
Usually, this will never happen unless there are errors in groundtruth annotations.