kwea123 / nerf_pl

NeRF (Neural Radiance Fields) and NeRF in the Wild using pytorch-lightning
https://www.youtube.com/playlist?list=PLDV2CyUo4q-K02pNEyDr7DYpTQuka3mbV
MIT License
2.74k stars 483 forks source link

No cache option in dev branch #101

Closed darthgera123 closed 3 years ago

darthgera123 commented 3 years ago

Hey there is no downscale or cache option in dev branch due to which I am unable to train the network. Could you guide how to add that please @kwea123

kwea123 commented 3 years ago

The training inputs are stored in https://github.com/kwea123/nerf_pl/blob/19a290103fd8df211a85a150daff861b53d59942/datasets/llff.py#L244-L245

So you can save these tensors in files and read them without the need to recompute them in each training/on different GPUs. However, this should not be a problem making you unable to train, caching only reduces data I/O so the preprocessing runs faster.