Skip to content

Commit 2e329cc

Browse files
YuMSVijay Vasudevan
authored andcommitted
Correct self_check label in label_image example (tensorflow#9608)
`military uniform` is the 654th label in inceptionV3 package.
1 parent c6bfe0e commit 2e329cc

File tree

1 file changed

+2
-2
lines changed
  • tensorflow/examples/label_image

1 file changed

+2
-2
lines changed

tensorflow/examples/label_image/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ int main(int argc, char* argv[]) {
307307
}
308308

309309
// This is for automated testing to make sure we get the expected result with
310-
// the default settings. We know that label 866 (military uniform) should be
310+
// the default settings. We know that label 653 (military uniform) should be
311311
// the top label for the Admiral Hopper image.
312312
if (self_test) {
313313
bool expected_matches;
314-
Status check_status = CheckTopLabel(outputs, 866, &expected_matches);
314+
Status check_status = CheckTopLabel(outputs, 653, &expected_matches);
315315
if (!check_status.ok()) {
316316
LOG(ERROR) << "Running check failed: " << check_status;
317317
return -1;

0 commit comments

Comments
 (0)