Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'SUNRGBDInstance' object has no attribute 'l' #1098

Closed
dk-liang opened this issue Dec 4, 2021 · 2 comments · Fixed by #1120
Closed

AttributeError: 'SUNRGBDInstance' object has no attribute 'l' #1098

dk-liang opened this issue Dec 4, 2021 · 2 comments · Fixed by #1120
Assignees

Comments

@dk-liang
Copy link

dk-liang commented Dec 4, 2021

When I run
python tools/create_data.py sunrgbd --root-path /data/dkliang/projects/synchronous/datasets/sunrgbd_mm/ --out-dir /data/dkliang/projects/synchronous/datasets/sunrgbd_mm/ --extra-tag sunrgbd.

It shows the following error:

No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
train sample_idx: 5051
train sample_idx: 5052
train sample_idx: 5053
train sample_idx: 5054
.....................................
train sample_idx: 10334
train sample_idx: 10335
Traceback (most recent call last):
File "tools/create_data.py", line 289, in
workers=args.workers)
File "tools/create_data.py", line 140, in sunrgbd_data_prep
root_path, info_prefix, out_dir, workers=workers)
File "/data/dkliang/projects/synchronous/mmdetection3d-1.0.0.dev0/tools/data_converter/indoor_converter.py", line 54, in create_indoor_info_file
num_workers=workers, has_label=True)
File "/data/dkliang/projects/synchronous/mmdetection3d-1.0.0.dev0/tools/data_converter/sunrgbd_data_utils.py", line 222, in get_infos
return list(infos)
File "/home/dkliang/miniconda3/envs/open-mmlab/lib/python3.7/concurrent/futures/_base.py", line 598, in result_iterator
yield fs.pop().result()
File "/home/dkliang/miniconda3/envs/open-mmlab/lib/python3.7/concurrent/futures/_base.py", line 428, in result
return self.__get_result()
File "/home/dkliang/miniconda3/envs/open-mmlab/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/home/dkliang/miniconda3/envs/open-mmlab/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/data/dkliang/projects/synchronous/mmdetection3d-1.0.0.dev0/tools/data_converter/sunrgbd_data_utils.py", line 196, in process_single_scene
[obj.l, obj.w, obj.h] for obj in obj_list
File "/data/dkliang/projects/synchronous/mmdetection3d-1.0.0.dev0/tools/data_converter/sunrgbd_data_utils.py", line 197, in
if obj.classname in self.cat2label.keys()
AttributeError: 'SUNRGBDInstance' object has no attribute 'l'

Could you tell me how to solve this?

@stanleyshly
Copy link

I am also getting this error

@wHao-Wu
Copy link
Contributor

wHao-Wu commented Dec 16, 2021

Hi, @dk-liang , @stanleyshly

We suppose that you created the SUN RGB-D data with v1.0.0 branch. We found that there is something wrong when creating .pkl file with v1.0.0 branch. We will fix this problem asap.

@wHao-Wu wHao-Wu linked a pull request Dec 17, 2021 that will close this issue
@wHao-Wu wHao-Wu closed this as completed Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants