Skip to content

The function arguments in bbox_util.py #6

Open
@caimumuxin

Description

There are some codes in bbox_util.py:
MAP = { 'density_dec_bbox':density, 'cutout_bbox':cutout, 'gaussian_noise_bbox':gaussian, 'uniform_noise_bbox':uniform, 'impulse_noise_bbox':impulse, 'scale_bbox':scale, 'shear_bbox':shear, 'rotation_bbox':rotation, 'moving_noise_bbox':moving_object, }
and
if 'bbox' in cor: pcd_2 = MAP[cor](pcd_2, slevel, gt_boxes) else: pcd_2 = MAP[cor](pcd_2, slevel)

while in the 9 functions defined in this file,
{
def density(pointcloud, severity): def cutout(pointcloud, severity): def gaussian(pointcloud, severity): def uniform(pointcloud, severity): def impulse(pointcloud, severity): def shear(pointcloud, severity,gt_boxes): def scale(pointcloud, severity,gt_boxes): def rotation(pointcloud,severity,gt_boxes): def moving_object(pointcloud, severity):
}
only three of them need the gt_boxes argument, but all of them have 'bbox' in cor and run pcd_2 = MAP[cor](pcd_2, slevel, gt_boxes).
When I run the function gaussian_noise_bbox(), I will get the error:
File "d:\code\mmdetection3d-main\mmdet3d\datasets\transforms\utils\bbox_util.py", line 318, in pick_bbox pcd_2 = MAP[cor](pcd_2, slevel, gt_boxes) TypeError: gaussian() takes 2 positional arguments but 3 were given

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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