QAMFace icon indicating copy to clipboard operation
QAMFace copied to clipboard

Not normalised -1 to 1?

Open xsacha opened this issue 5 years ago • 2 comments

Ideally the input data is normalised between -1 and 1 because fp32 and fp16 have better precision in that range. Is there a reason why it is commented out in the code?

xsacha avatar Feb 04 '20 00:02 xsacha

Hi! trans.ToTensor() will automatically do this.

MccreeZhao avatar Feb 07 '20 08:02 MccreeZhao

Did you test this? AFAIK, toTensor normalised to [0,1] range

xsacha avatar Feb 07 '20 09:02 xsacha