-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noisy result. #38
Comments
Hi justin, |
Please check your image format. It should match to the image reading method. |
ahhhh, thank you for your remind, I printed the image array (tiff format image), and get 20000~30000 pixel value, I think that's why I got the noisy result! @JeremyAlain |
So if I use |
I think the precision is ok but you should make sure that after pre-processing you use [0, 1] range in the training. |
You already did the normalization step for us right? In
Especially in line 194, first casting the datatype from uint16 (tiff image) to np.float32 ('data_compute_dtype'), and then divided by 65535 ('self.input1_src.dtype.max'), it should be range from [0, 1]. We don't need to do any additional normalization step right? @nothinglo Even reading the tiff image with |
May I ask your tif images are 8 bits or 16 bits? @nothinglo |
I found the problem, if we export the fivek dataset to tif format in 16 bits using lightroom, opencv will write the images in 8 bits during the testing, the testing image will be noisy, we should prepare the 8 bits dataset rather then 16 bits. @JeremyAlain Therefore the correct dataset preparation pipeline is:
Feel free to add it to readme, maybe it can help other person. @nothinglo |
@JustinhoCHN Thank you very much for your elaborate explanation. i think @nothinglo should add this to the readme, because this is something I have also experienced a lot with and still have not found out which solution they use. One thing I would like to ask,
|
@JeremyAlain My understanding:
|
|
Thanks all. I will add this issue to the README. |
Do you know how to expand the inference dimension to 2048? |
How to convert the result to sRGB ? I used the ProPhoto RGB during training, and now I want to store my result during inference. How can I convert the results to sRGB color space ? thanks |
as for colourspaces :
|
The model was trained for 134 epochs, unpaired learning -- fivek and hdr dataset, I check the test_img for every epoch, almost like these noisy image:
All the hyperparams remain the same as the origin, can anyone give any insight about this situation? @nothinglo
The text was updated successfully, but these errors were encountered: