Rename gesture_recognizer test_data to testdata to be consistent with rest of model_maker

PiperOrigin-RevId: 492246728
This commit is contained in:
MediaPipe Team 2022-12-01 11:09:26 -08:00 committed by Copybara-Service
parent e685ac9344
commit 02aa162c9e
46 changed files with 9 additions and 9 deletions

View File

@ -24,9 +24,9 @@ package(
# TODO: Remove the unncessary test data once the demo data are moved to an open-sourced
# directory.
filegroup(
name = "test_data",
name = "testdata",
srcs = glob([
"test_data/**",
"testdata/**",
]),
)
@ -53,7 +53,7 @@ py_test(
name = "dataset_test",
srcs = ["dataset_test.py"],
data = [
":test_data",
":testdata",
"//mediapipe/model_maker/models/gesture_recognizer:models",
],
deps = [
@ -136,7 +136,7 @@ py_test(
size = "large",
srcs = ["gesture_recognizer_test.py"],
data = [
":test_data",
":testdata",
"//mediapipe/model_maker/models/gesture_recognizer:models",
],
shard_count = 2,
@ -151,7 +151,7 @@ py_test(
name = "metadata_writer_test",
srcs = ["metadata_writer_test.py"],
data = [
":test_data",
":testdata",
],
deps = [
":metadata_writer",
@ -164,7 +164,7 @@ py_binary(
name = "gesture_recognizer_demo",
srcs = ["gesture_recognizer_demo.py"],
data = [
":test_data",
":testdata",
"//mediapipe/model_maker/models/gesture_recognizer:models",
],
python_version = "PY3",

View File

@ -31,7 +31,7 @@ FLAGS = flags.FLAGS
# TODO: Move hand gesture recognizer demo dataset to an
# open-sourced directory.
TEST_DATA_DIR = 'mediapipe/model_maker/python/vision/gesture_recognizer/test_data/raw_data'
TEST_DATA_DIR = 'mediapipe/model_maker/python/vision/gesture_recognizer/testdata/raw_data'
def define_flags():

View File

@ -25,7 +25,7 @@ from mediapipe.model_maker.python.core.utils import test_util
from mediapipe.model_maker.python.vision import gesture_recognizer
from mediapipe.tasks.python.test import test_utils
_TEST_DATA_DIR = 'mediapipe/model_maker/python/vision/gesture_recognizer/test_data'
_TEST_DATA_DIR = 'mediapipe/model_maker/python/vision/gesture_recognizer/testdata'
tf.keras.backend.experimental.enable_tf_random_generator()

View File

@ -23,7 +23,7 @@ from mediapipe.model_maker.python.vision.gesture_recognizer import metadata_writ
from mediapipe.tasks.python.metadata.metadata_writers import metadata_writer as base_metadata_writer
from mediapipe.tasks.python.test import test_utils
_TEST_DATA_DIR = "mediapipe/model_maker/python/vision/gesture_recognizer/test_data/metadata"
_TEST_DATA_DIR = "mediapipe/model_maker/python/vision/gesture_recognizer/testdata/metadata"
_EXPECTED_JSON = test_utils.get_test_data_path(
os.path.join(_TEST_DATA_DIR, "custom_gesture_classifier_meta.json"))