facebookresearch / InterHand2.6M

Official PyTorch implementation of "InterHand2.6M: A Dataset and Baseline for 3D Interacting Hand Pose Estimation from a Single RGB Image", ECCV 2020
Other
687 stars 91 forks source link

Dataset ""transform** bug? #23

Closed felixfuu closed 3 years ago

felixfuu commented 3 years ago

1、https://github.com/facebookresearch/InterHand2.6M/blob/master/common/base.py#L81 transforms.ToTensor(), img->[0, 1] 2、https://github.com/facebookresearch/InterHand2.6M/blob/master/data/InterHand2.6M/dataset.py#L139 img->[0, 1/255.] ?

mks0601 commented 3 years ago

Did you check ToTensor normalizes floating tensors as well? As I remember, it only normalizes integer tensors, so the first stage does not normalize img to [0,1]

felixfuu commented 3 years ago

You are right, thank you for your reply.