Skip to content

Error occured during testing own ply file without annotations #7

@PermaPat

Description

@PermaPat

I tried to run the pre-trained model with a ply file without annotations, only with x, y, and z values. I followed the steps in the readme file, but the following error occurred. According to this, it is trying to load annotations that do not exist for this file. It would be very kind if you could help us how to use our own ply files without annotations?

Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 122, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "/opt/conda/lib/python3.10/site-packages/mmdet3d/datasets/scannet_dataset.py", line 94, in init
super().init(
File "/opt/conda/lib/python3.10/site-packages/mmdet3d/datasets/det3d_dataset.py", line 129, in init
super().init(
File "/opt/conda/lib/python3.10/site-packages/mmengine/dataset/base_dataset.py", line 250, in init
self.full_init()
File "/opt/conda/lib/python3.10/site-packages/mmengine/dataset/base_dataset.py", line 301, in full_init
self.data_list = self.load_data_list()
File "/opt/conda/lib/python3.10/site-packages/mmengine/dataset/base_dataset.py", line 440, in load_data_list
raise TypeError(f'The annotations loaded from annotation file '
TypeError: The annotations loaded from annotation file should be a dict, but got <class 'list'>!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 122, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/loops.py", line 414, in init
super().init(runner, dataloader)
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/base_loop.py", line 26, in init
self.dataloader = runner.build_dataloader(
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1346, in build_dataloader
dataset = DATASETS.build(dataset_cfg)
File "/opt/conda/lib/python3.10/site-packages/mmengine/registry/registry.py", line 548, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/opt/conda/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg
raise type(e)(
TypeError: class ForAINetV2SegDataset_ in oneformer3d/forainetv2_dataset.py: The annotations loaded from annotation file should be a dict, but got <class 'list'>!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/workspace/tools/test.py", line 149, in
main()
File "/workspace/tools/test.py", line 145, in main
runner.test()
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1760, in test
self._test_loop = self.build_test_loop(self._test_loop) # type: ignore
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1563, in build_test_loop
loop = LOOPS.build(
File "/opt/conda/lib/python3.10/site-packages/mmengine/registry/registry.py", line 548, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/opt/conda/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg
raise type(e)(
TypeError: class TestLoop in mmengine/runner/loops.py: class ForAINetV2SegDataset_ in oneformer3d/forainetv2_dataset.py: The annotations loaded from annotation file should be a dict, but got <class 'list'>!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions