Hi, I want to use torchvision’s gaussian_blur instead of PIL’s gaussian blur; in pil you have one sigma input; how can I translate that sigma into kernel_size and sigma of torchvision, also are the paddings the same?
It seems like an easy question but so far I couldn’t figure out the exact parameters even with visualization (btw, I only care about sigma when it’s between 0.1 and 2.0 (self-supervised data augmentation))
I also found this question on StackOverflow.
The reason I’m asking is that I used PIL to train a MoCov2 on imagenet for 35 epochs and it’s performing almost 2% (absolute) better than the one with torchvision
and yes, I’m using different blurs for different images of the minibatch, so the only difference is the blur function