Jittor / JNeRF

JNeRF is a NeRF benchmark based on Jittor. JNeRF re-implemented instant-ngp and achieved same performance with original paper.
Apache License 2.0
640 stars 74 forks source link

Type Error:argument of type 'NoneType' is not iterable #33

Open chenyan1123 opened 2 years ago

chenyan1123 commented 2 years ago

Loading config from: ./projects/ngp/configs/ngp_base.py load train data Traceback (most recent call last): File "/home/featurize/JNeRF/python/jnerf/utils/registry.py", line 33, in build_from_cfg module = obj_cls(**args) File "/home/featurize/JNeRF/python/jnerf/dataset/dataset.py", line 111, in init self.load_data() File "/home/featurize/JNeRF/python/jnerf/dataset/dataset.py", line 150, in load_data if 'h' in json_data: TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/featurize/JNeRF/tools/run_net.py", line 54, in main() File "/home/featurize/JNeRF/tools/run_net.py", line 44, in main runner = Runner() File "/home/featurize/JNeRF/python/jnerf/runner/runner.py", line 24, in init self.dataset["train"] = build_from_cfg(self.cfg.dataset.train, DATASETS) File "/home/featurize/JNeRF/python/jnerf/utils/registry.py", line 37, in build_from_cfg raise TypeError(e) TypeError: <class 'jnerf.dataset.dataset.NerfDataset'>.argument of type 'NoneType' is not iterable

could you help me?

bluefacej commented 2 years ago

me too,anyone can help?

kwea123 commented 2 years ago

You need to change this https://github.com/Jittor/JNeRF/blob/a6f419b6ab24fcfe0f2ea7fc6ca37c9cc1fc2294/projects/ngp/configs/ngp_base.py#L39 to where the folder is located, did you?