Closed funkfuzz closed 4 years ago
Could someone explain me why do we multiply our image by 2/255 on line 128? I understand that we have to divide by 255 to normallize the image, but why do we have "2" in the numerator ?
https://github.com/swook/GazeML/blob/5466f59be70583e7e8c343bda91c8df539aef13a/src/datasources/frames.py#L128
Also on the next line - why do we subtract 1 from the whole image matrix ? Isn't this making the values in our image-matrix to be negative?
I tried to calculate the values of an example matrix with this method and I always get negative values after Line 129.
Could someone explain me why do we multiply our image by 2/255 on line 128? I understand that we have to divide by 255 to normallize the image, but why do we have "2" in the numerator ?
https://github.com/swook/GazeML/blob/5466f59be70583e7e8c343bda91c8df539aef13a/src/datasources/frames.py#L128
Also on the next line - why do we subtract 1 from the whole image matrix ? Isn't this making the values in our image-matrix to be negative?
I tried to calculate the values of an example matrix with this method and I always get negative values after Line 129.