How the does the prepocess work? [preprocess2,preprocess3]
Closed this issue · 2 comments
RobinY99 commented
zwx8981 commented
@RobinY99 Sorry for the late reply.
1, The mean and variances values are statistical results of the dataset used to train CLIP models. This should be consistent between training and inference. Otherwise the prediction accuracy will be significantly degraded.
2,Yes, randomflip is a commonly used data augmentation technique that can help training models more effectively. Preprocess2 is used at inference phase, so we remove the random flip to achieve deterministic prediction behaviour.
RobinY99 commented
Thanks for your patient answers 0.0 !