Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
add r3det and s2anet crop
  • Loading branch information
Luo-Z13 authored Jun 12, 2024
1 parent 29594fc commit 20e0cc5
Show file tree
Hide file tree
Showing 3 changed files with 416 additions and 30 deletions.
59 changes: 31 additions & 28 deletions mmrotate/models/detectors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# Copyright (c) OpenMMLab. All rights reserved.
from .base import RotatedBaseDetector
from .gliding_vertex import GlidingVertex
from .oriented_rcnn import OrientedRCNN
from .r3det import R3Det
from .redet import ReDet
from .roi_transformer import RoITransformer
from .rotate_faster_rcnn import RotatedFasterRCNN
from .rotated_fcos import RotatedFCOS
from .rotated_reppoints import RotatedRepPoints
from .rotated_retinanet import RotatedRetinaNet
from .s2anet import S2ANet
from .single_stage import RotatedSingleStageDetector
from .single_stage_crop import RotatedSingleStageDetectorCrop
from .two_stage import RotatedTwoStageDetector
from .two_stage_crop import RotatedTwoStageDetectorCrop
from .rotated_detr import RotatedDETR
from .rotated_deformable_detr import RotatedDeformableDETR
from .ars_detr import ARSDETR
from .h2rbox import H2RBox

__all__ = [
'RotatedRetinaNet', 'RotatedFasterRCNN', 'OrientedRCNN', 'RoITransformer',
'GlidingVertex', 'ReDet', 'R3Det', 'S2ANet', 'RotatedRepPoints',
'RotatedBaseDetector', 'RotatedSingleStageDetectorCrop', 'RotatedTwoStageDetector',
'RotatedSingleStageDetector', 'RotatedFCOS', 'RotatedTwoStageDetectorCrop',
'RotatedDETR', 'RotatedDeformableDETR', 'ARSDETR', 'H2RBox'
]
# Copyright (c) OpenMMLab. All rights reserved.
from .base import RotatedBaseDetector
from .gliding_vertex import GlidingVertex
from .oriented_rcnn import OrientedRCNN
from .r3det import R3Det
from .redet import ReDet
from .roi_transformer import RoITransformer
from .rotate_faster_rcnn import RotatedFasterRCNN
from .rotated_fcos import RotatedFCOS
from .rotated_reppoints import RotatedRepPoints
from .rotated_retinanet import RotatedRetinaNet
from .s2anet import S2ANet
from .single_stage import RotatedSingleStageDetector
from .single_stage_crop import RotatedSingleStageDetectorCrop
from .two_stage import RotatedTwoStageDetector
from .two_stage_crop import RotatedTwoStageDetectorCrop
from .rotated_detr import RotatedDETR
from .rotated_deformable_detr import RotatedDeformableDETR
from .ars_detr import ARSDETR
from .h2rbox import H2RBox

from .r3det_crop import R3DetCrop
from .s2anet_crop import S2ANetCrop

__all__ = [
'RotatedRetinaNet', 'RotatedFasterRCNN', 'OrientedRCNN', 'RoITransformer',
'GlidingVertex', 'ReDet', 'R3Det', 'S2ANet', 'RotatedRepPoints',
'RotatedBaseDetector', 'RotatedSingleStageDetectorCrop', 'RotatedTwoStageDetector',
'RotatedSingleStageDetector', 'RotatedFCOS', 'RotatedTwoStageDetectorCrop',
'RotatedDETR', 'RotatedDeformableDETR', 'ARSDETR', 'H2RBox','R3DetCrop','S2ANetCrop'
]
4 changes: 2 additions & 2 deletions mmrotate/models/detectors/r3det_crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def relocate(idx, local_bboxes, patch_meta):


@ROTATED_DETECTORS.register_module()
class R3Det(RotatedBaseDetector):
class R3DetCrop(RotatedBaseDetector):
"""Rotated Refinement RetinaNet."""

def __init__(self,
Expand All @@ -191,7 +191,7 @@ def __init__(self,
test_cfg=None,
pretrained=None,
init_cfg=None):
super(R3Det, self).__init__(init_cfg)
super(R3DetCrop, self).__init__(init_cfg)
if pretrained:
warnings.warn('DeprecationWarning: pretrained is deprecated, '
'please use "init_cfg" instead')
Expand Down
Loading

0 comments on commit 20e0cc5

Please sign in to comment.