Skip to content

Commit ed1d74b

Browse files
MarcSzafraniecfacebook-github-bot
authored andcommitted
Add Deeplab + config files
Summary: Adding Deeplab head to Densepose + config files Reviewed By: vkhalidov Differential Revision: D19345446 fbshipit-source-id: 3dbcfb38ad4a598a4f7377909d086acaf4a6972d
1 parent 5ac96b2 commit ed1d74b

8 files changed

+354
-20
lines changed

projects/DensePose/configs/Base-DensePose-RCNN-FPN.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@ SOLVER:
4444
WARMUP_FACTOR: 0.1
4545
INPUT:
4646
MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)
47-
VERSION: 2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
2+
MODEL:
3+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
4+
RESNETS:
5+
DEPTH: 101
6+
ROI_DENSEPOSE_HEAD:
7+
NAME: "DensePoseDeepLabHead"
8+
SOLVER:
9+
MAX_ITER: 130000
10+
STEPS: (100000, 120000)

projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ MODEL:
66
SOLVER:
77
MAX_ITER: 130000
88
STEPS: (100000, 120000)
9-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
2+
MODEL:
3+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
4+
RESNETS:
5+
DEPTH: 50
6+
ROI_DENSEPOSE_HEAD:
7+
NAME: "DensePoseDeepLabHead"
8+
SOLVER:
9+
MAX_ITER: 130000
10+
STEPS: (100000, 120000)

projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ MODEL:
66
SOLVER:
77
MAX_ITER: 130000
88
STEPS: (100000, 120000)
9-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
_BASE_: "../Base-DensePose-RCNN-FPN.yaml"
2+
MODEL:
3+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
4+
ROI_DENSEPOSE_HEAD:
5+
NAME: "DensePoseDeepLabHead"
6+
DATASETS:
7+
TRAIN: ("densepose_coco_2014_minival_100",)
8+
TEST: ("densepose_coco_2014_minival_100",)
9+
SOLVER:
10+
MAX_ITER: 40
11+
STEPS: (30,)

projects/DensePose/densepose/config.py

+4
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ def add_densepose_config(cfg):
3333
_C.MODEL.ROI_DENSEPOSE_HEAD.PART_WEIGHTS = 0.3
3434
# Loss weights for UV regression.
3535
_C.MODEL.ROI_DENSEPOSE_HEAD.POINT_REGRESSION_WEIGHTS = 0.1
36+
# For DeepLab head
37+
_C.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB = CN()
38+
_C.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB.NORM = "GN"
39+
_C.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB.NONLOCAL_ON = 0

0 commit comments

Comments
 (0)