Skip to content

Commit

Permalink
fix num_cls
Browse files Browse the repository at this point in the history
  • Loading branch information
triple-Mu committed Apr 15, 2024
1 parent b91ba07 commit 3659189
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions configs/rotated_rtmdet/_base_/comp_rr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
dataset_type = 'DOTADataset'
data_root = 'data/DOTA/'

metainfo = {
'classes': ('A', 'B', 'C', 'D', 'E', 'F'),
'palette': [(165, 42, 42), (189, 183, 107), (0, 255, 0), (255, 0, 0),
(138, 43, 226), (255, 128, 0)]
}

file_client_args = dict(backend='disk')

train_pipeline = [
Expand Down Expand Up @@ -58,6 +64,7 @@
dataset=dict(
type=dataset_type,
data_root=data_root,
metainfo=metainfo,
ann_file='train/annfiles/',
data_prefix=dict(img_path='train/images/'),
img_shape=(1024, 1024),
Expand All @@ -72,6 +79,7 @@
dataset=dict(
type=dataset_type,
data_root=data_root,
metainfo=metainfo,
ann_file='val/annfiles/',
data_prefix=dict(img_path='val/images/'),
img_shape=(1024, 1024),
Expand Down
2 changes: 1 addition & 1 deletion configs/rotated_rtmdet/rotated_rtmdet_l-3x-dota-comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
act_cfg=dict(type='SiLU')),
bbox_head=dict(
type='RotatedRTMDetSepBNHead',
num_classes=15,
num_classes=6,
in_channels=256,
stacked_convs=2,
feat_channels=256,
Expand Down

0 comments on commit 3659189

Please sign in to comment.