fix: typo (with -> width)

This commit is contained in:
homuler 2020-12-21 00:07:20 +09:00
parent 39309bedba
commit 9b1d2db289
2 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ mediapipe::Status TensorsToLandmarksCalculator::Open(CalculatorContext* cc) {
if (kOutNormalizedLandmarkList(cc).IsConnected()) { if (kOutNormalizedLandmarkList(cc).IsConnected()) {
RET_CHECK(options_.has_input_image_height() && RET_CHECK(options_.has_input_image_height() &&
options_.has_input_image_width()) options_.has_input_image_width())
<< "Must provide input with/height for getting normalized landmarks."; << "Must provide input width/height for getting normalized landmarks.";
} }
if (kOutLandmarkList(cc).IsConnected() && if (kOutLandmarkList(cc).IsConnected() &&
(options_.flip_horizontally() || options_.flip_vertically() || (options_.flip_horizontally() || options_.flip_vertically() ||
@ -124,7 +124,7 @@ mediapipe::Status TensorsToLandmarksCalculator::Open(CalculatorContext* cc) {
kFlipVertically(cc).IsConnected())) { kFlipVertically(cc).IsConnected())) {
RET_CHECK(options_.has_input_image_height() && RET_CHECK(options_.has_input_image_height() &&
options_.has_input_image_width()) options_.has_input_image_width())
<< "Must provide input with/height for using flipping when outputing " << "Must provide input width/height for using flipping when outputing "
"landmarks in absolute coordinates."; "landmarks in absolute coordinates.";
} }
return mediapipe::OkStatus(); return mediapipe::OkStatus();

View File

@ -149,7 +149,7 @@ mediapipe::Status TfLiteTensorsToLandmarksCalculator::Open(
if (cc->Outputs().HasTag("NORM_LANDMARKS")) { if (cc->Outputs().HasTag("NORM_LANDMARKS")) {
RET_CHECK(options_.has_input_image_height() && RET_CHECK(options_.has_input_image_height() &&
options_.has_input_image_width()) options_.has_input_image_width())
<< "Must provide input with/height for getting normalized landmarks."; << "Must provide input width/height for getting normalized landmarks.";
} }
if (cc->Outputs().HasTag("LANDMARKS") && if (cc->Outputs().HasTag("LANDMARKS") &&
(options_.flip_vertically() || options_.flip_horizontally() || (options_.flip_vertically() || options_.flip_horizontally() ||
@ -157,7 +157,7 @@ mediapipe::Status TfLiteTensorsToLandmarksCalculator::Open(
cc->InputSidePackets().HasTag("FLIP_VERTICALLY"))) { cc->InputSidePackets().HasTag("FLIP_VERTICALLY"))) {
RET_CHECK(options_.has_input_image_height() && RET_CHECK(options_.has_input_image_height() &&
options_.has_input_image_width()) options_.has_input_image_width())
<< "Must provide input with/height for using flip_vertically option " << "Must provide input width/height for using flip_vertically option "
"when outputing landmarks in absolute coordinates."; "when outputing landmarks in absolute coordinates.";
} }