Skip to content
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

Failed writing EXR #44

Open
jzzsc opened this issue Feb 3, 2021 · 1 comment
Open

Failed writing EXR #44

jzzsc opened this issue Feb 3, 2021 · 1 comment

Comments

@jzzsc
Copy link

jzzsc commented Feb 3, 2021

Sorry to bother.
I find a question when I run this code. I can find 'Reading' is done, 'Inference' is done, but there is a warning for 'writing':
Warning! "Failed writing EXR: module 'OpenEXR' has no attribute 'Header'"
Thus, I cannot get the HDR result.
Could you please tell me how to fix this problem?

@gabrieleilertsen
Copy link
Owner

Hi. Not sure on this. Do you have the appropriate OpenEXR libs installed (both through your general package manager, such as apt-get in Ubuntu, and through the pip package manager)? It seems like OpenEXR is found and imported, but the OpenEXR header is not found for some reason...

If you continue to have problems with the EXR export, you could also use some other format so that you can export the HDR data. The 'y_predict' HDR image that is exported is just an numpy-array that could be stored in any other way, e.g. numpy's 'tofile', although floating point export will use much more disc space compared to OpenEXR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants