Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
20949dd8
Commit
20949dd8
authored
Apr 07, 2022
by
Vighnesh Birodkar
Committed by
TF Object Detection Team
Apr 07, 2022
Browse files
Add self-supervised augmentation to DeepMAC HR model.
PiperOrigin-RevId: 440225825
parent
a98cb7d2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
858 additions
and
111 deletions
+858
-111
research/object_detection/meta_architectures/deepmac_meta_arch.py
.../object_detection/meta_architectures/deepmac_meta_arch.py
+381
-76
research/object_detection/meta_architectures/deepmac_meta_arch_test.py
...ct_detection/meta_architectures/deepmac_meta_arch_test.py
+454
-34
research/object_detection/protos/center_net.proto
research/object_detection/protos/center_net.proto
+23
-1
No files found.
research/object_detection/meta_architectures/deepmac_meta_arch.py
View file @
20949dd8
This diff is collapsed.
Click to expand it.
research/object_detection/meta_architectures/deepmac_meta_arch_test.py
View file @
20949dd8
This diff is collapsed.
Click to expand it.
research/object_detection/protos/center_net.proto
View file @
20949dd8
...
@@ -403,7 +403,7 @@ message CenterNet {
...
@@ -403,7 +403,7 @@ message CenterNet {
// Mask prediction support using DeepMAC. See https://arxiv.org/abs/2104.00613
// Mask prediction support using DeepMAC. See https://arxiv.org/abs/2104.00613
// Next ID
25
// Next ID
33
message
DeepMACMaskEstimation
{
message
DeepMACMaskEstimation
{
// The loss used for penalizing mask predictions.
// The loss used for penalizing mask predictions.
optional
ClassificationLoss
classification_loss
=
1
;
optional
ClassificationLoss
classification_loss
=
1
;
...
@@ -505,6 +505,21 @@ message CenterNet {
...
@@ -505,6 +505,21 @@ message CenterNet {
optional
bool
use_only_last_stage
=
24
[
default
=
false
];
optional
bool
use_only_last_stage
=
24
[
default
=
false
];
optional
float
augmented_self_supervision_max_translation
=
25
[
default
=
0.0
];
optional
float
augmented_self_supervision_flip_probability
=
26
[
default
=
0.0
];
optional
float
augmented_self_supervision_loss_weight
=
27
[
default
=
0.0
];
optional
int32
augmented_self_supervision_warmup_start
=
28
[
default
=
0
];
optional
int32
augmented_self_supervision_warmup_steps
=
29
[
default
=
0
];
optional
AugmentedSelfSupervisionLoss
augmented_self_supervision_loss
=
30
[
default
=
LOSS_DICE
];
optional
float
augmented_self_supervision_scale_min
=
31
[
default
=
1.0
];
optional
float
augmented_self_supervision_scale_max
=
32
[
default
=
1.0
];
}
}
optional
DeepMACMaskEstimation
deepmac_mask_estimation
=
14
;
optional
DeepMACMaskEstimation
deepmac_mask_estimation
=
14
;
...
@@ -527,6 +542,13 @@ enum LossNormalize {
...
@@ -527,6 +542,13 @@ enum LossNormalize {
NORMALIZE_BALANCED
=
3
;
NORMALIZE_BALANCED
=
3
;
}
}
enum
AugmentedSelfSupervisionLoss
{
LOSS_UNSET
=
0
;
LOSS_DICE
=
1
;
LOSS_MSE
=
2
;
LOSS_KL_DIV
=
3
;
}
message
CenterNetFeatureExtractor
{
message
CenterNetFeatureExtractor
{
optional
string
type
=
1
;
optional
string
type
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment