mlagunas/full_body-human_relighting

When I installed the environment you provided, run python photo_relighting.py get this error

Opened this issue · 2 comments

image

my environment ubuntu 18.04 RTX 3090 python 3.8 torch 1.9 cuda 11.1

imageio needs FreeImage extension to support .exr/.pfm format. I solve the same problem by following steps:

  1. select correct version in https://github.com/imageio/imageio-binaries/tree/master/freeimage, download the library.
  2. run the code to find the path to place the FreeImage .so file. For me, it's /home/dengchunfang/.imageio/. You can find a freeimage directory there.
import imageio
imageio.core.util.appdata_dir("imageio")
  1. move the .so file to the freeimage directory(/home/dengchunfang/.imageio/freeimage).

Then imageio can read and write images in .exr/.pfm format.