ziplab / LITv2

[NeurIPS 2022 Spotlight] This is the official PyTorch implementation of "Fast Vision Transformers with HiLo Attention"
Apache License 2.0
229 stars 11 forks source link

Data normalization #12

Closed ytring closed 1 year ago

ytring commented 1 year ago

Hi,

I saw that data is normalized for the val split, but not for the train split:

https://github.com/ziplab/LITv2/blob/b0a35dec6d7d1244401bf428cccaa82df9ccd813/classification/data/build.py#L134

Shouldn't normalization be applied to both val and train splits?

Thank you for your help again.

HubHop commented 1 year ago

That's a good question. In general, we have different aims for training and testing.

The following discussions may help,

ytring commented 1 year ago

Thank you!