"git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "fee317380e756299754f5d4ec044b4806b941614"
Unverified Commit 14ccfc43 authored by Jingwei Zhang's avatar Jingwei Zhang Committed by GitHub
Browse files

[Fix] Fix the __repr__ in NuScenesDataset (#1831)

* force the mask as bool

* fix config name

* Revert "fix config name"

This reverts commit 99fc6445d9a49824b61692bcdd374eabd0ef3200.

* remove type convert

* minor changes

* fix docs
parent 1a2f72a2
......@@ -423,13 +423,9 @@ class ObjectSample(BaseTransform):
def __repr__(self):
"""str: Return a string that describes the module."""
repr_str = self.__class__.__name__
repr_str += f'db_sampler={self.db_sampler},'
repr_str += f' sample_2d={self.sample_2d},'
repr_str += f' data_root={self.sampler_cfg.data_root},'
repr_str += f' info_path={self.sampler_cfg.info_path},'
repr_str += f' rate={self.sampler_cfg.rate},'
repr_str += f' prepare={self.sampler_cfg.prepare},'
repr_str += f' classes={self.sampler_cfg.classes},'
repr_str += f' sample_groups={self.sampler_cfg.sample_groups}'
repr_str += f' use_ground_plane={self.use_ground_plane}'
return repr_str
......
......@@ -56,7 +56,7 @@ def point_sample(img_meta,
points = apply_3d_transformation(
points, coord_type, img_meta, reverse=True)
# project points to camera coordinate
# project points to image coordinate
pts_2d = points_cam2img(points, proj_mat)
# img transformation: scale -> crop -> flip
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment