@@ -67,15 +67,19 @@ message RandomHorizontalFlip {
67
67
// flipped indices. This is used in the event that keypoints are specified,
68
68
// in which case when the image is horizontally flipped the keypoints will
69
69
// need to be permuted. E.g. for keypoints representing left_eye, right_eye,
70
- // nose_tip, mouth, left_ear, right_ear (in that order), one might specify
71
- // the keypoint_flip_permutation below:
70
+ // and nose (in that order), one might specify:
71
+ // keypoint_flip_permutation below:
72
72
// keypoint_flip_permutation: 1
73
73
// keypoint_flip_permutation: 0
74
74
// keypoint_flip_permutation: 2
75
- // keypoint_flip_permutation: 3
76
- // keypoint_flip_permutation: 5
77
- // keypoint_flip_permutation: 4
78
- // If nothing is specified the order of keypoint will be mantained.
75
+ //
76
+ // original image horizontally flipped image
77
+ // ___________________________ ___________________________
78
+ // / / / | \ \ \
79
+ // left eye, 0 right eye, 1 | left eye, 1 right eye, 0
80
+ // nose, 2 | nose, 2
81
+ // ___________________________ ___________________________
82
+ // If nothing is specified, the order of keypoint will be mantained.
79
83
repeated int32 keypoint_flip_permutation = 1 ;
80
84
81
85
// The probability of running this augmentation for each image.
@@ -89,14 +93,20 @@ message RandomVerticalFlip {
89
93
// flipped indices. This is used in the event that keypoints are specified,
90
94
// in which case when the image is vertically flipped the keypoints will
91
95
// need to be permuted. E.g. for keypoints representing left_eye, right_eye,
92
- // nose_tip, mouth, left_ear, right_ear (in that order), one might specify
93
- // the keypoint_flip_permutation below:
96
+ // and nose (in that order), one might specify:
94
97
// keypoint_flip_permutation: 1
95
98
// keypoint_flip_permutation: 0
96
99
// keypoint_flip_permutation: 2
97
- // keypoint_flip_permutation: 3
98
- // keypoint_flip_permutation: 5
99
- // keypoint_flip_permutation: 4
100
+ // ___________________________
101
+ // / / / | original image
102
+ // left eye, 0 right eye, 1 |
103
+ // nose, 2 |
104
+ // ___________________________
105
+ // \ \ \ | vertically flipped image
106
+ // nose, 2 |
107
+ // right eye, 0 left eye, 1 |
108
+ // ___________________________
109
+ // If nothing is specified, the order of keypoint will be mantained.
100
110
repeated int32 keypoint_flip_permutation = 1 ;
101
111
102
112
// The probability of running this augmentation for each image.
0 commit comments