I am trying to incorporate several of the losses implemented in piq into my masked autoencoder model for pre-training. I noticed that parameter data_range is often used to revert the input image into 0 -> 255 range. However, with z-score normalization a simple input_image / data_range * 255 will not conver the input_image back to 0 -> 255 range. In this scenario, is it better to set data_range to 1, or is it better to revert the images manually and set data_range to 255?
hello dear developers,
I am trying to incorporate several of the losses implemented in piq into my masked autoencoder model for pre-training. I noticed that parameter
data_range
is often used to revert the input image into 0 -> 255 range. However, with z-score normalization a simpleinput_image / data_range * 255
will not conver the input_image back to 0 -> 255 range. In this scenario, is it better to set data_range to 1, or is it better to revert the images manually and set data_range to 255?Best, Michael