When I installed the environment you provided, run python photo_relighting.py get this error
Opened this issue · 2 comments
zhanghongyong123456 commented
zhanghongyong123456 commented
distillation-dcf commented
imageio needs FreeImage extension to support .exr/.pfm format. I solve the same problem by following steps:
- select correct version in https://github.com/imageio/imageio-binaries/tree/master/freeimage, download the library.
- run the code to find the path to place the FreeImage .so file. For me, it's
/home/dengchunfang/.imageio/
. You can find afreeimage
directory there.
import imageio
imageio.core.util.appdata_dir("imageio")
- move the .so file to the
freeimage
directory(/home/dengchunfang/.imageio/freeimage
).
Then imageio can read and write images in .exr/.pfm format.