GANDCTAnalysis icon indicating copy to clipboard operation
GANDCTAnalysis copied to clipboard

About data preprocessing

Open HWSQHL opened this issue 3 years ago • 0 comments

In Section 4.1 of the paper, “For training a model on samples in the image domain, we normalize the pixel values to the range [−1, 1]. In the frequency domain, we first convert the images using DCT, then log-scale the coefficients and, finally, normalize them by removing the mean and scaling to unit variance.”
How do you process images? Can you give me a code to process it.I want to use pytorch to realize it.

HWSQHL avatar Aug 02 '22 08:08 HWSQHL