From f0af246884d370874a3abed24305f06eda2d5948 Mon Sep 17 00:00:00 2001 From: SekiroRong Date: Thu, 29 Dec 2022 14:03:21 +0800 Subject: [PATCH] remove-redundent__init__ --- projects/PETR/petr/models/task_modules/__init__.py | 6 ++---- .../PETR/petr/models/task_modules/assigners/__init__.py | 7 +------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/projects/PETR/petr/models/task_modules/__init__.py b/projects/PETR/petr/models/task_modules/__init__.py index 320736d894..c019c63da4 100644 --- a/projects/PETR/petr/models/task_modules/__init__.py +++ b/projects/PETR/petr/models/task_modules/__init__.py @@ -1,11 +1,9 @@ # Copyright (c) OpenMMLab. All rights reserved. -from mmdet.models.task_modules import AssignResult, BaseAssigner - from .assigners import HungarianAssigner3D from .coders import NMSFreeCoder from .match_cost import BBox3DL1Cost, FocalLossCost, IoUCost __all__ = [ - 'BaseAssigner', 'AssignResult', 'HungarianAssigner3D', 'NMSFreeCoder', - 'BBox3DL1Cost', 'IoUCost', 'FocalLossCost' + 'HungarianAssigner3D', 'NMSFreeCoder', 'BBox3DL1Cost', 'IoUCost', + 'FocalLossCost' ] diff --git a/projects/PETR/petr/models/task_modules/assigners/__init__.py b/projects/PETR/petr/models/task_modules/assigners/__init__.py index 63da70739e..f10f4026ef 100644 --- a/projects/PETR/petr/models/task_modules/assigners/__init__.py +++ b/projects/PETR/petr/models/task_modules/assigners/__init__.py @@ -1,9 +1,4 @@ # Copyright (c) OpenMMLab. All rights reserved. -from mmdet.models.task_modules import (AssignResult, BaseAssigner, - MaxIoUAssigner) - from .hungarian_assigner_3d import HungarianAssigner3D -__all__ = [ - 'BaseAssigner', 'MaxIoUAssigner', 'AssignResult', 'HungarianAssigner3D' -] +__all__ = ['HungarianAssigner3D']