63 points · by georgehill · 2y ago · 6 comments
This gives you the same "no mismatch between training and predict", and was a standard technique back in vision days (~2018).
I would be curious how this differs from [1] which is supported in Huggingface’s transformers library.