bmild / nerf

Code release for NeRF (Neural Radiance Fields)
http://tancik.com/nerf
MIT License
9.83k stars 1.37k forks source link

Grayscale - single channel #173

Open iamankan opened 1 year ago

iamankan commented 1 year ago

How to use this for training on grayscale image, single channel data?

iamankan commented 1 year ago

It provides following error:

RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.

iamankan commented 1 year ago

I changed https://github.com/bmild/nerf/blob/master/load_llff.py#L114 to return imageio.imread(f, ignoregamma=True, as_gray=False, pilmode="RGB") and it runs.