Haian-Jin / Neural_Gaffer

[NeurIPS 2024] Official code for "Neural Gaffer: Relighting Any Object via Diffusion"
MIT License
231 stars 5 forks source link

Command in section 4.1 raise error #8

Open BaiYeBuTingXuan opened 2 days ago

BaiYeBuTingXuan commented 2 days ago

Issue: Error Reading .exr File in Neural Gaffer

When executing the command:

accelerate launch --main_process_port 25539 --config_file configs/1_16fp.yaml neural_gaffer_inference_objaverse_3d.py --output_dir logs/neural_gaffer_res256 --mixed_precision fp16 --resume_from_checkpoint latest --total_view 120 --lighting_per_view 4 --cond_lighting_index 0 --validation_data_dir './3d_relighting_data' --lighting_dir './demo/hdrmaps_for_3d' --save_dir './prepocessed_3d_relighting_data'

I encountered an error related to reading .exr files, which lie under the "--lighting_dir=='./demo/hdrmaps_for_3d'". Specifically, the error occurs at line 207 in the file dataset_relighting_objaverse_3d.py:

envir_map = imageio.imread(path) # [H, W, 3] The error message indicates that the .exr file could not be read directly.

If there are any specific requirements or configurations needed for reading .exr files, please provide guidance on how to set them up.

Thank you!

BaiYeBuTingXuan commented 2 days ago

This error is solved with downloading freeimage using the following command:

imageio_download_bin freeimage