xhuangcv / hdr-nerf

The official implementation of CVPR 2022 paper: HDR-NeRF: High Dynamic Range Neural Radiance Fields
MIT License
196 stars 13 forks source link

No such file or directory: '/your_data_path/flower/poses_bounds_exps.npy' #3

Closed addy1997 closed 2 years ago

addy1997 commented 2 years ago

Hello @shsf0817,

This is amazing work. I am facing this error after running command

python3 run_nerf.py --config configs/flower.txt

Error

Traceback (most recent call last):
  File "/home/adwait/hdr-nerf/run_nerf.py", line 790, in <module>
    train()
  File "/home/adwait/hdr-nerf/run_nerf.py", line 458, in train
    images, poses, bds, exps_source, render_poses, render_exps, i_test = load_real_llff_data(args.datadir, args.factor,
  File "/home/adwait/hdr-nerf/load_real_llff.py", line 236, in load_real_llff_data
    poses, bds, exp, imgs = _load_data(basedir, factor=factor) # factor=8 downsamples original imgs by 8x
  File "/home/adwait/hdr-nerf/load_real_llff.py", line 61, in _load_data
    poses_arr = np.load(os.path.join(basedir, 'poses_bounds_exps.npy'))
  File "/home/adwait/.local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 390, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '/your_data_path/flower/poses_bounds_exps.npy'

Please could you help?

xhuangcv commented 2 years ago

Hello @shsf0817,

This is amazing work. I am facing this error after running command

python3 run_nerf.py --config configs/flower.txt

Error

Traceback (most recent call last):
  File "/home/adwait/hdr-nerf/run_nerf.py", line 790, in <module>
    train()
  File "/home/adwait/hdr-nerf/run_nerf.py", line 458, in train
    images, poses, bds, exps_source, render_poses, render_exps, i_test = load_real_llff_data(args.datadir, args.factor,
  File "/home/adwait/hdr-nerf/load_real_llff.py", line 236, in load_real_llff_data
    poses, bds, exp, imgs = _load_data(basedir, factor=factor) # factor=8 downsamples original imgs by 8x
  File "/home/adwait/hdr-nerf/load_real_llff.py", line 61, in _load_data
    poses_arr = np.load(os.path.join(basedir, 'poses_bounds_exps.npy'))
  File "/home/adwait/.local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 390, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '/your_data_path/flower/poses_bounds_exps.npy'

Please could you help?

Hi, thanks for your attention. You could replace the 'datadir' and 'basedir' in configs/flower.txt with your path, which can solve this error.

addy1997 commented 2 years ago

Something like this @shsf0817.

basedir = /home/adwait/hdr-nerf/logs datadir = /home/adwait/hdr-nerf/demo/flower

Is there a way to run it in google colab?

xhuangcv commented 2 years ago

Something like this @shsf0817.

basedir = /home/adwait/hdr-nerf/logs datadir = /home/adwait/hdr-nerf/demo/flower

Is there a way to run it in google colab?

Sorry, I haven't tested the code in google colab.