hjxwhy / mipnerf_pl

Unofficial pytorch-lightning implement of Mip-NeRF
MIT License
274 stars 30 forks source link

FileNotFoundError #16

Closed XiangFeng66 closed 1 year ago

XiangFeng66 commented 1 year ago

I am so sorry to disturb you,when I save_image,I have a problem 0%| | 0/200 [00:02<?, ?it/s] Traceback (most recent call last): File "/root/miniconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/root/miniconda3/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/root/mipnerf_pl-dev/eval.py", line 90, in blender_scenes = main(args) File "/root/mipnerf_pl-dev/eval.py", line 78, in main save_images(fine_rgb, distances, accs, out_path, n) File "/root/mipnerf_pl-dev/utils/vis.py", line 70, in save_images save_image_tensor(rgb, H, W, os.path.join(path, str('{:05d}'.format(idx)) + '_rgb' + '.png')) File "/root/mipnerf_pl-dev/utils/vis.py", line 56, in save_image_tensor torchvision.utils.save_image(image, save_path) File "/root/miniconda3/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/torchvision/utils.py", line 156, in save_image im.save(fp, format=format) File "/root/miniconda3/lib/python3.8/site-packages/PIL/Image.py", line 2297, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: '/root/mipnerf_pl-dev/Viedos/000/test/lego/4/00000_rgb.png' I don't know how to solve the problem

XiangFeng66 commented 1 year ago

And this code _, (f_rgb, distance, acc) = model(batch_rays, False, args.white_bkgd) The function returns 5 values, but accepts it with three variables values error

hjxwhy commented 1 year ago

I am sorry that you have to solve the image path problem and value unpack error by yourself, it is so easy if you have learned python. I am sorry have no time to teach you step by step.