JNeRF icon indicating copy to clipboard operation
JNeRF copied to clipboard

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

Open chenyan1123 opened this issue 3 years ago • 2 comments

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?

chenyan1123 avatar Jul 21 '22 07:07 chenyan1123

me too,anyone can help?

bluefacej avatar Jul 22 '22 06:07 bluefacej

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?

kwea123 avatar Jul 23 '22 03:07 kwea123