-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding pose estimation models, adding new models to previous tasks
- Loading branch information
1 parent
10311ad
commit f6ef24d
Showing
107 changed files
with
2,575 additions
and
121 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
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
det/configs/det/faster_rcnn_hrnetv2p_w18_1x_det_bdd100k.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,15 @@ | ||
"""HRNet18, 1x schedule.""" | ||
|
||
_base_ = "./faster_rcnn_hrnetv2p_w32_1x_det_bdd100k.py" | ||
model = dict( | ||
pretrained="open-mmlab://msra/hrnetv2_w18", | ||
backbone=dict( | ||
extra=dict( | ||
stage2=dict(num_channels=(18, 36)), | ||
stage3=dict(num_channels=(18, 36, 72)), | ||
stage4=dict(num_channels=(18, 36, 72, 144)), | ||
), | ||
), | ||
neck=dict(type="HRFPN", in_channels=[18, 36, 72, 144], out_channels=256), | ||
) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/faster_rcnn_hrnetv2p_w18_1x_det_bdd100k.pth" |
15 changes: 15 additions & 0 deletions
15
det/configs/det/faster_rcnn_hrnetv2p_w18_3x_det_bdd100k.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,15 @@ | ||
"""HRNet18, 3x schedule, MS training.""" | ||
|
||
_base_ = "./faster_rcnn_hrnetv2p_w32_3x_det_bdd100k.py" | ||
model = dict( | ||
pretrained="open-mmlab://msra/hrnetv2_w18", | ||
backbone=dict( | ||
extra=dict( | ||
stage2=dict(num_channels=(18, 36)), | ||
stage3=dict(num_channels=(18, 36, 72)), | ||
stage4=dict(num_channels=(18, 36, 72, 144)), | ||
), | ||
), | ||
neck=dict(type="HRFPN", in_channels=[18, 36, 72, 144], out_channels=256), | ||
) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/faster_rcnn_hrnetv2p_w18_3x_det_bdd100k.pth" |
49 changes: 49 additions & 0 deletions
49
det/configs/det/faster_rcnn_hrnetv2p_w32_1x_det_bdd100k.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,49 @@ | ||
"""HRNet32, 1x schedule.""" | ||
|
||
_base_ = "./faster_rcnn_r50_fpn_1x_det_bdd100k.py" | ||
model = dict( | ||
pretrained="open-mmlab://msra/hrnetv2_w32", | ||
backbone=dict( | ||
_delete_=True, | ||
type="HRNet", | ||
extra=dict( | ||
stage1=dict( | ||
num_modules=1, | ||
num_branches=1, | ||
block="BOTTLENECK", | ||
num_blocks=(4,), | ||
num_channels=(64,), | ||
), | ||
stage2=dict( | ||
num_modules=1, | ||
num_branches=2, | ||
block="BASIC", | ||
num_blocks=(4, 4), | ||
num_channels=(32, 64), | ||
), | ||
stage3=dict( | ||
num_modules=4, | ||
num_branches=3, | ||
block="BASIC", | ||
num_blocks=(4, 4, 4), | ||
num_channels=(32, 64, 128), | ||
), | ||
stage4=dict( | ||
num_modules=3, | ||
num_branches=4, | ||
block="BASIC", | ||
num_blocks=(4, 4, 4, 4), | ||
num_channels=(32, 64, 128, 256), | ||
), | ||
), | ||
), | ||
neck=dict( | ||
_delete_=True, | ||
type="HRFPN", | ||
in_channels=[32, 64, 128, 256], | ||
out_channels=256, | ||
), | ||
) | ||
data = dict(samples_per_gpu=2, workers_per_gpu=2) | ||
optimizer = dict(type="SGD", lr=0.02, momentum=0.9, weight_decay=0.0001) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/faster_rcnn_hrnetv2p_w32_1x_det_bdd100k.pth" |
49 changes: 49 additions & 0 deletions
49
det/configs/det/faster_rcnn_hrnetv2p_w32_3x_det_bdd100k.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,49 @@ | ||
"""HRNet32, 3x schedule, MS training.""" | ||
|
||
_base_ = "./faster_rcnn_r50_fpn_3x_det_bdd100k.py" | ||
model = dict( | ||
pretrained="open-mmlab://msra/hrnetv2_w32", | ||
backbone=dict( | ||
_delete_=True, | ||
type="HRNet", | ||
extra=dict( | ||
stage1=dict( | ||
num_modules=1, | ||
num_branches=1, | ||
block="BOTTLENECK", | ||
num_blocks=(4,), | ||
num_channels=(64,), | ||
), | ||
stage2=dict( | ||
num_modules=1, | ||
num_branches=2, | ||
block="BASIC", | ||
num_blocks=(4, 4), | ||
num_channels=(32, 64), | ||
), | ||
stage3=dict( | ||
num_modules=4, | ||
num_branches=3, | ||
block="BASIC", | ||
num_blocks=(4, 4, 4), | ||
num_channels=(32, 64, 128), | ||
), | ||
stage4=dict( | ||
num_modules=3, | ||
num_branches=4, | ||
block="BASIC", | ||
num_blocks=(4, 4, 4, 4), | ||
num_channels=(32, 64, 128, 256), | ||
), | ||
), | ||
), | ||
neck=dict( | ||
_delete_=True, | ||
type="HRFPN", | ||
in_channels=[32, 64, 128, 256], | ||
out_channels=256, | ||
), | ||
) | ||
data = dict(samples_per_gpu=2, workers_per_gpu=2) | ||
optimizer = dict(type="SGD", lr=0.02, momentum=0.9, weight_decay=0.0001) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/faster_rcnn_hrnetv2p_w32_3x_det_bdd100k.pth" |
10 changes: 10 additions & 0 deletions
10
det/configs/det/libra_faster_rcnn_r101_fpn_3x_det_bdd100k.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,10 @@ | ||
"""Libra R-CNN with ResNet101-FPN, 3x schedule, MS training.""" | ||
|
||
_base_ = "./libra_faster_rcnn_r50_fpn_3x_det_bdd100k.py" | ||
model = dict( | ||
backbone=dict( | ||
depth=101, | ||
init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), | ||
) | ||
) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/libra_faster_rcnn_r101_fpn_3x_det_bdd100k.pth" |
53 changes: 53 additions & 0 deletions
53
det/configs/det/libra_faster_rcnn_r50_fpn_1x_det_bdd100k.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,53 @@ | ||
"""Libra R-CNN with ResNet50-FPN, 1x schedule.""" | ||
|
||
_base_ = "./faster_rcnn_r50_fpn_1x_det_bdd100k.py" | ||
model = dict( | ||
neck=[ | ||
dict( | ||
type="FPN", | ||
in_channels=[256, 512, 1024, 2048], | ||
out_channels=256, | ||
num_outs=5, | ||
), | ||
dict( | ||
type="BFP", | ||
in_channels=256, | ||
num_levels=5, | ||
refine_level=2, | ||
refine_type="non_local", | ||
), | ||
], | ||
roi_head=dict( | ||
bbox_head=dict( | ||
loss_bbox=dict( | ||
_delete_=True, | ||
type="BalancedL1Loss", | ||
alpha=0.5, | ||
gamma=1.5, | ||
beta=1.0, | ||
loss_weight=1.0, | ||
) | ||
) | ||
), | ||
# model training and testing settings | ||
train_cfg=dict( | ||
rpn=dict(sampler=dict(neg_pos_ub=5), allowed_border=-1), | ||
rcnn=dict( | ||
sampler=dict( | ||
_delete_=True, | ||
type="CombinedSampler", | ||
num=512, | ||
pos_fraction=0.25, | ||
add_gt_as_proposals=True, | ||
pos_sampler=dict(type="InstanceBalancedPosSampler"), | ||
neg_sampler=dict( | ||
type="IoUBalancedNegSampler", | ||
floor_thr=-1, | ||
floor_fraction=0, | ||
num_bins=3, | ||
), | ||
) | ||
), | ||
), | ||
) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/libra_faster_rcnn_r50_fpn_1x_det_bdd100k.pth" |
53 changes: 53 additions & 0 deletions
53
det/configs/det/libra_faster_rcnn_r50_fpn_3x_det_bdd100k.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,53 @@ | ||
"""Libra R-CNN with ResNet50-FPN, 3x schedule, MS training.""" | ||
|
||
_base_ = "./faster_rcnn_r50_fpn_3x_det_bdd100k.py" | ||
model = dict( | ||
neck=[ | ||
dict( | ||
type="FPN", | ||
in_channels=[256, 512, 1024, 2048], | ||
out_channels=256, | ||
num_outs=5, | ||
), | ||
dict( | ||
type="BFP", | ||
in_channels=256, | ||
num_levels=5, | ||
refine_level=2, | ||
refine_type="non_local", | ||
), | ||
], | ||
roi_head=dict( | ||
bbox_head=dict( | ||
loss_bbox=dict( | ||
_delete_=True, | ||
type="BalancedL1Loss", | ||
alpha=0.5, | ||
gamma=1.5, | ||
beta=1.0, | ||
loss_weight=1.0, | ||
) | ||
) | ||
), | ||
# model training and testing settings | ||
train_cfg=dict( | ||
rpn=dict(sampler=dict(neg_pos_ub=5), allowed_border=-1), | ||
rcnn=dict( | ||
sampler=dict( | ||
_delete_=True, | ||
type="CombinedSampler", | ||
num=512, | ||
pos_fraction=0.25, | ||
add_gt_as_proposals=True, | ||
pos_sampler=dict(type="InstanceBalancedPosSampler"), | ||
neg_sampler=dict( | ||
type="IoUBalancedNegSampler", | ||
floor_thr=-1, | ||
floor_fraction=0, | ||
num_bins=3, | ||
), | ||
) | ||
), | ||
), | ||
) | ||
load_from = "https://dl.cv.ethz.ch/bdd100k/det/models/libra_faster_rcnn_r50_fpn_3x_det_bdd100k.pth" |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.