From 64d5c159c6f509b656b8e28ed91375c24db3e35b Mon Sep 17 00:00:00 2001 From: kinaryml Date: Mon, 3 Oct 2022 16:14:35 -0700 Subject: [PATCH] Fixed an auto formatting issue that caused classification_posprocessing_graph's registration to fail --- .../processors/classification_postprocessing_graph.cc | 4 ++-- .../tasks/python/test/vision/image_classifier_test.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mediapipe/tasks/cc/components/processors/classification_postprocessing_graph.cc b/mediapipe/tasks/cc/components/processors/classification_postprocessing_graph.cc index 35adab687..649ff2c11 100644 --- a/mediapipe/tasks/cc/components/processors/classification_postprocessing_graph.cc +++ b/mediapipe/tasks/cc/components/processors/classification_postprocessing_graph.cc @@ -507,8 +507,8 @@ class ClassificationPostprocessingGraph : public mediapipe::Subgraph { } }; -REGISTER_MEDIAPIPE_GRAPH(::mediapipe::tasks::components::processors:: - ClassificationPostprocessingGraph); // NOLINT +REGISTER_MEDIAPIPE_GRAPH( + ::mediapipe::tasks::components::processors::ClassificationPostprocessingGraph); // NOLINT } // namespace processors } // namespace components diff --git a/mediapipe/tasks/python/test/vision/image_classifier_test.py b/mediapipe/tasks/python/test/vision/image_classifier_test.py index c16587cb5..0ce70395e 100644 --- a/mediapipe/tasks/python/test/vision/image_classifier_test.py +++ b/mediapipe/tasks/python/test/vision/image_classifier_test.py @@ -48,22 +48,22 @@ _EXPECTED_CLASSIFICATION_RESULT = _ClassificationResult( categories=[ _Category( index=934, - score=0.7952049970626831, + score=0.7939587831497192, display_name='', category_name='cheeseburger'), _Category( index=932, - score=0.02732999622821808, + score=0.02739289402961731, display_name='', category_name='bagel'), _Category( index=925, - score=0.01933487318456173, + score=0.01934075355529785, display_name='', category_name='guacamole'), _Category( index=963, - score=0.006279350258409977, + score=0.006327860057353973, display_name='', category_name='meat loaf') ],