ken2576 / vision-nerf

Official PyTorch Implementation of paper "Vision Transformer for NeRF-Based View Synthesis from a Single Input Image", WACV 2023.
MIT License
107 stars 12 forks source link

ModuleNotFoundError: No module named 'configargparse' #2

Closed wangniuniu123 closed 1 year ago

wangniuniu123 commented 1 year ago

When I use python eval_nmr.py --config [config path] to run the code always get the error:No module named 'configargparse' So is my config file geting wrong? OR i missed some setting.

ken2576 commented 1 year ago

Hi Please install configargparse. pip install configargparse

wangniuniu123 commented 1 year ago

image And I try to run the code in the anaconda, it seems a error: 'numpy.float64' object is not iterable. How to fix it? By the way this is my config, is anything wrong, or if you could attach one example config file will be easier for users to test. image

wangniuniu123 commented 1 year ago

And if i don't add data in these three variables: self.intrinsics = [] self.poses = [] self.rgb_paths = [] i always get the error:ValueError: need at least one array to stack

ken2576 commented 1 year ago

The data_path needs to be a directory. If you are using custom data then you will have to write your own dataloader. Please check https://github.com/ken2576/vision-nerf/blob/main/configs/train_srn_cars.txt for an example on the SRN dataset.

wangniuniu123 commented 1 year ago

The data_path needs to be a directory. If you are using custom data then you will have to write your own dataloader. Please check https://github.com/ken2576/vision-nerf/blob/main/configs/train_srn_cars.txt for an example on the SRN dataset.

thanks a lot