Hello Peter,
Thank you for your reply. The function is not wrongly calculated but just different. Please check this adjust_brightness function in Tensorflow where the value ‘delta’ is added to all the pixels of the image.
Tensorflow Adjust_brightness 6
In PyTorch, brightness in colorJitter is calculated as a factor value. So a delta value of 52 in tensorflow for random_brightness would make the image completely white in PyTorch.
The main reason I ask this question is how do I replicate a paper’s augmentation that has source code in Tensorflow?
Thank you,
Ayush