yenchenlin / nerf-pytorch

A PyTorch implementation of NeRF (Neural Radiance Fields) that reproduces the results.
MIT License
5.53k stars 1.07k forks source link

Fix `imread` call to use `apply_gamma` instead of `ignoregamma` #141

Open JY251 opened 4 months ago

JY251 commented 4 months ago

Refactor imread function call to use apply_gamma=False for compatibility with latest imageio.

In load_llff.py, updated the imread function call to use apply_gamma=False instead of the deprecated ignoregamma=True argument. This change ensures compatibility with the latest version of imageio, addressing issues reported in https://github.com/yenchenlin/nerf-pytorch/issues/140.

A similar issue and corresponding pull request have been raised for the original TensorFlow version of NeRF (bmild/nerf) here: Issue #190 and Pull Request #210.