forked from open-mmlab/mmdetection
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add lvis dataset * fixed eval * fixed test cfg * add resnext config * update md * fixed name * update model urls * minor fix * fixed typo * use open-mmlab lvis * update travis * fixed install * make class balance as default
- Loading branch information
Showing
12 changed files
with
556 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
_base_ = 'coco_instance.py' | ||
dataset_type = 'LVISDataset' | ||
data_root = 'data/lvis/' | ||
data = dict( | ||
samples_per_gpu=2, | ||
workers_per_gpu=2, | ||
train=dict( | ||
type='ClassBalancedDataset', | ||
oversample_thr=1e-3, | ||
dataset=dict( | ||
type=dataset_type, | ||
ann_file=data_root + 'annotations/lvis_v0.5_train.json', | ||
img_prefix=data_root + 'train2017/')), | ||
val=dict( | ||
type=dataset_type, | ||
ann_file=data_root + 'annotations/lvis_v0.5_val.json', | ||
img_prefix=data_root + 'val2017/'), | ||
test=dict( | ||
type=dataset_type, | ||
ann_file=data_root + 'annotations/lvis_v0.5_val.json', | ||
img_prefix=data_root + 'val2017/')) | ||
evaluation = dict(metric=['bbox', 'segm']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# LVIS dataset | ||
|
||
## Introduction | ||
``` | ||
@inproceedings{gupta2019lvis, | ||
title={{LVIS}: A Dataset for Large Vocabulary Instance Segmentation}, | ||
author={Gupta, Agrim and Dollar, Piotr and Girshick, Ross}, | ||
booktitle={Proceedings of the {IEEE} Conference on Computer Vision and Pattern Recognition}, | ||
year={2019} | ||
} | ||
``` | ||
|
||
## Common Setting | ||
* All experiments use oversample strategy [here](../../docs/tutorials/new_dataset.md#class-balanced-dataset) with oversample threshold `1e-3`. | ||
* The size of LVIS v0.5 is half of COCO, so schedule `2x` in LVIS is roughly the same iterations as `1x` in COCO. | ||
|
||
## Results and models | ||
|
||
| Backbone | Style | Lr schd | Mem (GB) | Inf time (fps) | box AP | mask AP | Download | | ||
| :-------------: | :-----: | :-----: | :------: | :------------: | :----: | :-----: | :------: | | ||
| R-50-FPN | pytorch | 2x | - | - | 26.1 | 25.9 | [model](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis-dbd06831.pth) | [log](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis_20200531_160435.log.json) | | ||
| R-101-FPN | pytorch | 2x | - | - | 27.1 | 27.0 | [model](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_r101_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_r101_fpn_sample1e-3_mstrain_2x_lvis-54582ee2.pth) | [log](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_r101_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_r101_fpn_sample1e-3_mstrain_2x_lvis_20200601_134748.log.json) | | ||
| X-101-32x4d-FPN | pytorch | 2x | - | - | 26.7 | 26.9 | [model](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_x101_32x4d_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_x101_32x4d_fpn_sample1e-3_mstrain_2x_lvis-3cf55ea2.pth) | [log](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_x101_32x4d_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_x101_32x4d_fpn_sample1e-3_mstrain_2x_lvis_20200531_221749.log.json) | | ||
| X-101-64x4d-FPN | pytorch | 2x | - | - | 26.4 | 26.0 | [model](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis-1c99a5ad.pth) | [log](https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis_20200601_194651.log.json) | |
2 changes: 2 additions & 0 deletions
2
configs/lvis/mask_rcnn_r101_fpn_sample1e-3_mstrain_2x_lvis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
_base_ = './mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis.py' | ||
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101)) |
31 changes: 31 additions & 0 deletions
31
configs/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
_base_ = [ | ||
'../_base_/models/mask_rcnn_r50_fpn.py', | ||
'../_base_/datasets/lvis_instance.py', | ||
'../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py' | ||
] | ||
model = dict( | ||
roi_head=dict( | ||
bbox_head=dict(num_classes=1230), mask_head=dict(num_classes=1230))) | ||
test_cfg = dict( | ||
rcnn=dict( | ||
score_thr=0.0001, | ||
# LVIS allows up to 300 | ||
max_per_img=300)) | ||
img_norm_cfg = dict( | ||
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) | ||
train_pipeline = [ | ||
dict(type='LoadImageFromFile'), | ||
dict(type='LoadAnnotations', with_bbox=True, with_mask=True), | ||
dict( | ||
type='Resize', | ||
img_scale=[(1333, 640), (1333, 672), (1333, 704), (1333, 736), | ||
(1333, 768), (1333, 800)], | ||
multiscale_mode='value', | ||
keep_ratio=True), | ||
dict(type='RandomFlip', flip_ratio=0.5), | ||
dict(type='Normalize', **img_norm_cfg), | ||
dict(type='Pad', size_divisor=32), | ||
dict(type='DefaultFormatBundle'), | ||
dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels', 'gt_masks']), | ||
] | ||
data = dict(train=dict(dataset=dict(pipeline=train_pipeline))) |
13 changes: 13 additions & 0 deletions
13
configs/lvis/mask_rcnn_x101_32x4d_fpn_sample1e-3_mstrain_2x_lvis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
_base_ = './mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis.py' | ||
model = dict( | ||
pretrained='open-mmlab://resnext101_32x4d', | ||
backbone=dict( | ||
type='ResNeXt', | ||
depth=101, | ||
groups=32, | ||
base_width=4, | ||
num_stages=4, | ||
out_indices=(0, 1, 2, 3), | ||
frozen_stages=1, | ||
norm_cfg=dict(type='BN', requires_grad=True), | ||
style='pytorch')) |
13 changes: 13 additions & 0 deletions
13
configs/lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
_base_ = './mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis.py' | ||
model = dict( | ||
pretrained='open-mmlab://resnext101_64x4d', | ||
backbone=dict( | ||
type='ResNeXt', | ||
depth=101, | ||
groups=64, | ||
base_width=4, | ||
num_stages=4, | ||
out_indices=(0, 1, 2, 3), | ||
frozen_stages=1, | ||
norm_cfg=dict(type='BN', requires_grad=True), | ||
style='pytorch')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.