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
cb7e2650
Unverified
Commit
cb7e2650
authored
Mar 28, 2022
by
Srihari Humbarwadi
Committed by
GitHub
Mar 28, 2022
Browse files
Merge branch 'tensorflow:master' into panoptic-deeplab
parents
05300091
74582325
Changes
83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
13 deletions
+21
-13
research/object_detection/protos/preprocessor.proto
research/object_detection/protos/preprocessor.proto
+21
-11
research/object_detection/tpu_exporters/utils_test.py
research/object_detection/tpu_exporters/utils_test.py
+0
-1
research/object_detection/utils/colab_utils.py
research/object_detection/utils/colab_utils.py
+0
-1
No files found.
research/object_detection/protos/preprocessor.proto
View file @
cb7e2650
...
...
@@ -67,15 +67,19 @@ message RandomHorizontalFlip {
// flipped indices. This is used in the event that keypoints are specified,
// in which case when the image is horizontally flipped the keypoints will
// need to be permuted. E.g. for keypoints representing left_eye, right_eye,
// nose
_tip, mouth, left_ear, right_ear
(in that order), one might specify
//
the
keypoint_flip_permutation below:
//
and
nose (in that order), one might specify
:
// keypoint_flip_permutation below:
// keypoint_flip_permutation: 1
// keypoint_flip_permutation: 0
// keypoint_flip_permutation: 2
// keypoint_flip_permutation: 3
// keypoint_flip_permutation: 5
// keypoint_flip_permutation: 4
// If nothing is specified the order of keypoint will be mantained.
//
// original image horizontally flipped image
// ___________________________ ___________________________
// / / / | \ \ \
// left eye, 0 right eye, 1 | left eye, 1 right eye, 0
// nose, 2 | nose, 2
// ___________________________ ___________________________
// If nothing is specified, the order of keypoint will be mantained.
repeated
int32
keypoint_flip_permutation
=
1
;
// The probability of running this augmentation for each image.
...
...
@@ -89,14 +93,20 @@ message RandomVerticalFlip {
// flipped indices. This is used in the event that keypoints are specified,
// in which case when the image is vertically flipped the keypoints will
// need to be permuted. E.g. for keypoints representing left_eye, right_eye,
// nose_tip, mouth, left_ear, right_ear (in that order), one might specify
// the keypoint_flip_permutation below:
// and nose (in that order), one might specify:
// keypoint_flip_permutation: 1
// keypoint_flip_permutation: 0
// keypoint_flip_permutation: 2
// keypoint_flip_permutation: 3
// keypoint_flip_permutation: 5
// keypoint_flip_permutation: 4
// ___________________________
// / / / | original image
// left eye, 0 right eye, 1 |
// nose, 2 |
// ___________________________
// \ \ \ | vertically flipped image
// nose, 2 |
// right eye, 0 left eye, 1 |
// ___________________________
// If nothing is specified, the order of keypoint will be mantained.
repeated
int32
keypoint_flip_permutation
=
1
;
// The probability of running this augmentation for each image.
...
...
research/object_detection/tpu_exporters/utils_test.py
View file @
cb7e2650
# Lint as: python2, python3
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
research/object_detection/utils/colab_utils.py
View file @
cb7e2650
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
Prev
1
2
3
4
5
Next
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