Version 1.x: Error when visualising the results #2103
Unanswered
JiSuanJiDaWang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to visualize the results using
visualize_results.py
and got the following error:Traceback (most recent call last):
File "/home/sysadmin/anaconda3/envs/mmd1.x/lib/python3.8/site-packages/mmengine/config/config.py", line 51, in getattr
value = super().getattr(name)
File "/home/sysadmin/anaconda3/envs/mmd1.x/lib/python3.8/site-packages/addict/addict.py", line 67, in getattr
return self.getitem(item)
File "/home/sysadmin/anaconda3/envs/mmd1.x/lib/python3.8/site-packages/mmengine/config/config.py", line 47, in missing
raise KeyError(name)
KeyError: 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sysadmin/mmdetection3d-dev-1.x/tools/misc/visualize_results.py", line 50, in
main()
File "/home/sysadmin/mmdetection3d-dev-1.x/tools/misc/visualize_results.py", line 33, in main
dataset = build_dataset(cfg.data.test)
File "/home/sysadmin/anaconda3/envs/mmd1.x/lib/python3.8/site-packages/mmengine/config/config.py", line 808, in getattr
return getattr(self._cfg_dict, name)
File "/home/sysadmin/anaconda3/envs/mmd1.x/lib/python3.8/site-packages/mmengine/config/config.py", line 53, in getattr
raise AttributeError(f"'{self.class.name}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'data'
Process finished with exit code 1
I found that the
data
variable has been removed in the config file in version dev-1.x. Seems thevisualize_results
does not support the new version config file.Beta Was this translation helpful? Give feedback.
All reactions