Lakonik / SSDNeRF

[ICCV 2023] Single-Stage Diffusion NeRF
https://lakonik.github.io/ssdnerf/
MIT License
432 stars 23 forks source link

[Errno 2] No such file or directory: 'data/shapenet/cars_test/1a3782ae4bd711b66b418c7d9fedcaa9/rgb' #15

Closed colian closed 1 year ago

colian commented 1 year ago

Hi, thanks for your work.

When I try to run "python train.py configs/supp_cfgs/ssdnerf_cars_reconskitti.py". It turns out "[Errno 2] No such file or directory: 'data/shapenet/cars_test/1a3782ae4bd711b66b418c7d9fedcaa9/rgb'". After I check the config file, it seems like I have no "test_pose_override", "cars_train" and "cars_test" files. (Only have cars_kitti) How can i get these files?

Look forward your reply, thanks.

Lakonik commented 1 year ago

Hi! The kitti dataset is not for training. You can run the test script with the shapnet-pretrained model: https://drive.google.com/file/d/1hsnUW7dZ45aPqXxtOVrOSBl1gQA_8wH-/view?usp=drive_link

colian commented 1 year ago

Thanks for your help, but my display page is blank (No errors come out) after running the visualization code, do u know why? I am using a RTX 2060ti GPU with 12G memory.

run: python demo/ssdnerf_gui.py configs/supp_cfgs/ssdnerf_cars_reconskitti.py checkpoint/ssdnerf_cars_recons1v_80k_emaonly.pth --fp16

gui: image

Lakonik commented 1 year ago

Please run the testing script:

python test.py configs/supp_cfgs/ssdnerf_cars_reconskitti.py checkpoint/ssdnerf_cars_recons1v_80k_emaonly.pth --gpu-ids 0 1

Then the visualized results will be automatically saved into work_dirs.

colian commented 1 year ago

Hi, thanks. I follow your suggestion to run the code. It also turns out "[Errno 2] No such file or directory: 'data/shapenet/cars_test/1a3782ae4bd711b66b418c7d9fedcaa9/rgb'". And i checked the config file "ssdnerf_cars_reconskitti.py", it indeed needs this file?

colian commented 1 year ago

Do u mean using the same 1a3782ae4bd711b66b418c7d9fedcaa9 file by downloading shapenet?

Lakonik commented 1 year ago

Hi, thanks. I follow your suggestion to run the code. It also turns out "[Errno 2] No such file or directory: 'data/shapenet/cars_test/1a3782ae4bd711b66b418c7d9fedcaa9/rgb'". And i checked the config file "ssdnerf_cars_reconskitti.py", it indeed needs this file?

This dependency should not be necessary. I have fixed it now. Thanks for the feedback!

colian commented 1 year ago

Thanks for your fast reply, but now it shows "[Errno 2] No such file or directory: 'demo/camera_spiral_cars/rgb’". =,=. Do u mean we should set 'test_pose_override=None'?

Lakonik commented 1 year ago

Thanks for your fast reply, but now it shows "[Errno 2] No such file or directory: 'demo/camera_spiral_cars/rgb’". =,=. Do u mean we should set 'test_pose_override=None'?

Can you post the full error msg?

colian commented 1 year ago

The running code is 'python test.py configs/supp_cfgs/ssdnerf_cars_reconskitti.py checkpoint/ssdnerf_cars_recons1v_80k_emaonly.pth --gpu-ids 0'

Results-> Traceback (most recent call last): File "/xxx/anaconda3/envs/ssdnerf/lib/python3.8/site-packages/mmcv/utils/registry.py", line 69, in build_from_cfg return obj_cls(args) File "/xxx/SSDNeRF/lib/datasets/shapenet_srn.py", line 74, in init** image_names = os.listdir(image_dir) FileNotFoundError: [Errno 2] No such file or directory: 'demo/camera_spiral_cars/rgb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "[test.py](http://test.py/)", line 75, in main() File "test.py", line 58, in main tools.test.main() File "/xxx/SSDNeRF/tools/test.py", line 212, in main dataset = build_dataset(cfg.data[eval_cfg.data]) File "/xxx/mmgeneration/mmgen/datasets/builder.py", line 60, in build_dataset dataset = build_from_cfg(cfg, DATASETS, default_args) File "/xxx/anaconda3/envs/ssdnerf/lib/python3.8/site-packages/mmcv/utils/registry.py", line 72, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') FileNotFoundError: ShapeNetSRN: [Errno 2] No such file or directory: 'demo/camera_spiral_cars/rgb'

Lakonik commented 1 year ago

The running code is 'python test.py configs/supp_cfgs/ssdnerf_cars_reconskitti.py checkpoint/ssdnerf_cars_recons1v_80k_emaonly.pth --gpu-ids 0'

Results-> Traceback (most recent call last): File "/xxx/anaconda3/envs/ssdnerf/lib/python3.8/site-packages/mmcv/utils/registry.py", line 69, in build_from_cfg return obj_cls(args) File "/xxx/SSDNeRF/lib/datasets/shapenet_srn.py", line 74, in init** image_names = os.listdir(image_dir) FileNotFoundError: [Errno 2] No such file or directory: 'demo/camera_spiral_cars/rgb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "[test.py](http://test.py/)", line 75, in main() File "test.py", line 58, in main tools.test.main() File "/xxx/SSDNeRF/tools/test.py", line 212, in main dataset = build_dataset(cfg.data[eval_cfg.data]) File "/xxx/mmgeneration/mmgen/datasets/builder.py", line 60, in build_dataset dataset = build_from_cfg(cfg, DATASETS, default_args) File "/xxx/anaconda3/envs/ssdnerf/lib/python3.8/site-packages/mmcv/utils/registry.py", line 72, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') FileNotFoundError: ShapeNetSRN: [Errno 2] No such file or directory: 'demo/camera_spiral_cars/rgb'

It seems that you may have not checked out the latest commit.

colian commented 1 year ago

I missed the changed file in lib, now solved it, thank u very much.