Skip to content

Commit a2d9047

Browse files
authored
Fix typo and import error in multiple files (#4992)
* Fix typo * Fix comments
1 parent 187774b commit a2d9047

12 files changed

+12
-6
lines changed

configs/_base_/datasets/cityscapes_detection.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
dataset_type = 'CityscapesDataset'
23
data_root = 'data/cityscapes/'
34
img_norm_cfg = dict(

configs/_base_/datasets/cityscapes_instance.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
dataset_type = 'CityscapesDataset'
23
data_root = 'data/cityscapes/'
34
img_norm_cfg = dict(

configs/_base_/datasets/coco_detection.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
dataset_type = 'CocoDataset'
23
data_root = 'data/coco/'
34
img_norm_cfg = dict(

configs/_base_/datasets/coco_instance.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
dataset_type = 'CocoDataset'
23
data_root = 'data/coco/'
34
img_norm_cfg = dict(

configs/_base_/datasets/coco_instance_semantic.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
dataset_type = 'CocoDataset'
23
data_root = 'data/coco/'
34
img_norm_cfg = dict(

configs/_base_/datasets/lvis_v0.5_instance.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
_base_ = 'coco_instance.py'
23
dataset_type = 'LVISV05Dataset'
34
data_root = 'data/lvis_v0.5/'

configs/_base_/datasets/lvis_v1_instance.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# dataset settings
12
_base_ = 'coco_instance.py'
23
dataset_type = 'LVISV1Dataset'
34
data_root = 'data/lvis_v1/'

configs/_base_/models/faster_rcnn_r50_fpn.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# model settings
12
model = dict(
23
type='FasterRCNN',
34
pretrained='torchvision://resnet50',

configs/_base_/models/retinanet_r50_fpn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
alpha=0.25,
4242
loss_weight=1.0),
4343
loss_bbox=dict(type='L1Loss', loss_weight=1.0)),
44-
# training and testing settings
44+
# model training and testing settings
4545
train_cfg=dict(
4646
assigner=dict(
4747
type='MaxIoUAssigner',

configs/_base_/models/rpn_r50_fpn.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# model settings
2-
32
model = dict(
43
type='RPN',
54
pretrained='torchvision://resnet50',

configs/_base_/models/ssd300.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
type='DeltaXYWHBBoxCoder',
2929
target_means=[.0, .0, .0, .0],
3030
target_stds=[0.1, 0.1, 0.2, 0.2])),
31+
# model training and testing settings
3132
train_cfg=dict(
3233
assigner=dict(
3334
type='MaxIoUAssigner',
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1+
from .base_roi_extractor import BaseRoIExtractor
12
from .generic_roi_extractor import GenericRoIExtractor
23
from .single_level_roi_extractor import SingleRoIExtractor
34

4-
__all__ = [
5-
'SingleRoIExtractor',
6-
'GenericRoIExtractor',
7-
]
5+
__all__ = ['BaseRoIExtractor', 'SingleRoIExtractor', 'GenericRoIExtractor']

0 commit comments

Comments
 (0)