Similar question answered here 170. The docs give you the information:



contrast (float 2 or tuple of python:float ( min , max )) – How much to jitter contrast. contrast_factor is chosen uniformly from [max(0, 1 - contrast), 1 + contrast] or the given [min, max]. Should be non negative numbers.


If you want to change the resolution on the image, change sz1 and sz2 to the desired values.