yenchenlin / nerf-pytorch

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

I don't know what the problem is. What do I need to fix? #102

Closed 23hyun closed 1 year ago

23hyun commented 1 year ago

(sehyun) C:\Windows\System32\nerf-pytorch>python run_nerf.py --config configs/lego.txt Traceback (most recent call last): File "C:\Windows\System32\nerf-pytorch\run_nerf.py", line 878, in train() File "C:\Windows\System32\nerf-pytorch\run_nerf.py", line 570, in train images, poses, render_poses, hwf, i_split = load_blender_data(args.datadir, args.half_res, args.testskip) File "C:\Windows\System32\nerf-pytorch\load_blender.py", line 41, in load_blenderdata with open(os.path.join(basedir, 'transforms{}.json'.format(s)), 'r') as fp: FileNotFoundError: [Errno 2] No such file or directory: './data/nerf_synthetic/lego\transforms_train.json'

jamesdemon923 commented 1 year ago

Hi! How did you solve this problem? Thanks!

JY251 commented 1 month ago

This issue is due to the lack of example data. To resolve this, please run the following command to download the example data first:

bash download_example_data.sh

After downloading the data, you should be able to run the command successfully:

python run_nerf.py --config configs/lego.txt

These steps are mentioned in README.md