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
[About align ratio] #10
Comments
@CaptainEven The alignratio is unique to this dataset provided by the organizer. You should modify the scripts related to data reading to fit your own data. |
@chxy95 Thank you for your reply and explanation!
|
@CaptainEven The alignratio is used to normalize the HDR value into [0, 1], since the value range of the provided HDR is [0, +∞) encoded in uint16 data. |
@chxy95 Thank you for your explanation!A seqence in my custom dataset is composed of 3 LDR jpg format image, and its GT jpg HDR image, how to set the alignratio value, 255 correct? As far as i know, the provided HDR GT is a png format image, its RGB range in [0-255] right? I don't understand "HDR is [0, +∞) encoded in uint16 data"... |
@CaptainEven The provided HDR GT is in uint16 png format of range [0-65535]. You can think that the alignratio for SDR images is 255, so values in [0, 255] can be normalized to [0, 1] divided by 255. For the provided HDR, maximum of an HDR image would be set to 65535 for writing, thus the alignratio is equal to 65535 / image.max(). When read, pixel values should be divided by the alignratio to normalize to [0, maximum]. For example, a nomalized HDR image with range in [0, 500] have an alignration with 65535/500. When saved, the image is in range [0, 65535]. When read, the image is divided by the alignratio to normalize to the range [0, 500]. If you still have any problem, you should check the provided dataset and scripts of data-io carefully to better understand the data. |
@chxy95 Thanks for your detailed explanation again! I got it! |
What is [align ratio] used for? I'm confused about the align-ratio...
How to set the align ratio in train_HDRUNet.yml if train on custom dataset?
The text was updated successfully, but these errors were encountered: