From 0dde58978a81dbbaf29b725c3faf929990d4c957 Mon Sep 17 00:00:00 2001 From: amyeroberts <22614925+amyeroberts@users.noreply.github.com> Date: Tue, 17 Jan 2023 14:04:07 +0000 Subject: [PATCH] Rename test_feature_extraction files (#21140) * Rename files * Update file names in tests --- ...e_extraction_beit.py => test_image_processing_beit.py} | 0 ...nese_clip.py => test_image_processing_chinese_clip.py} | 0 ...e_extraction_clip.py => test_image_processing_clip.py} | 0 ..._detr.py => test_image_processing_conditional_detr.py} | 0 ...tion_convnext.py => test_image_processing_convnext.py} | 0 ...e_detr.py => test_image_processing_deformable_detr.py} | 0 ...e_extraction_deit.py => test_image_processing_deit.py} | 0 ...e_extraction_detr.py => test_image_processing_detr.py} | 0 ...extraction_donut.py => test_image_processing_donut.py} | 0 ...ure_extraction_dpt.py => test_image_processing_dpt.py} | 0 ...extraction_flava.py => test_image_processing_flava.py} | 0 ...tion_imagegpt.py => test_image_processing_imagegpt.py} | 0 ..._layoutlmv2.py => test_image_processing_layoutlmv2.py} | 0 ..._layoutlmv3.py => test_image_processing_layoutlmv3.py} | 0 ...extraction_levit.py => test_image_processing_levit.py} | 0 ..._maskformer.py => test_image_processing_maskformer.py} | 0 ...ilenet_v1.py => test_image_processing_mobilenet_v1.py} | 0 ...ilenet_v2.py => test_image_processing_mobilenet_v2.py} | 0 ...on_mobilevit.py => test_image_processing_mobilevit.py} | 0 ...traction_owlvit.py => test_image_processing_owlvit.py} | 0 ..._poolformer.py => test_image_processing_poolformer.py} | 0 ...on_segformer.py => test_image_processing_segformer.py} | 0 ...tion_videomae.py => test_image_processing_videomae.py} | 0 ...e_extraction_vilt.py => test_image_processing_vilt.py} | 0 ...ure_extraction_vit.py => test_image_processing_vit.py} | 0 ...extraction_yolos.py => test_image_processing_yolos.py} | 0 tests/utils/test_add_new_model_like.py | 8 ++++---- 27 files changed, 4 insertions(+), 4 deletions(-) rename tests/models/beit/{test_feature_extraction_beit.py => test_image_processing_beit.py} (100%) rename tests/models/chinese_clip/{test_feature_extraction_chinese_clip.py => test_image_processing_chinese_clip.py} (100%) rename tests/models/clip/{test_feature_extraction_clip.py => test_image_processing_clip.py} (100%) rename tests/models/conditional_detr/{test_feature_extraction_conditional_detr.py => test_image_processing_conditional_detr.py} (100%) rename tests/models/convnext/{test_feature_extraction_convnext.py => test_image_processing_convnext.py} (100%) rename tests/models/deformable_detr/{test_feature_extraction_deformable_detr.py => test_image_processing_deformable_detr.py} (100%) rename tests/models/deit/{test_feature_extraction_deit.py => test_image_processing_deit.py} (100%) rename tests/models/detr/{test_feature_extraction_detr.py => test_image_processing_detr.py} (100%) rename tests/models/donut/{test_feature_extraction_donut.py => test_image_processing_donut.py} (100%) rename tests/models/dpt/{test_feature_extraction_dpt.py => test_image_processing_dpt.py} (100%) rename tests/models/flava/{test_feature_extraction_flava.py => test_image_processing_flava.py} (100%) rename tests/models/imagegpt/{test_feature_extraction_imagegpt.py => test_image_processing_imagegpt.py} (100%) rename tests/models/layoutlmv2/{test_feature_extraction_layoutlmv2.py => test_image_processing_layoutlmv2.py} (100%) rename tests/models/layoutlmv3/{test_feature_extraction_layoutlmv3.py => test_image_processing_layoutlmv3.py} (100%) rename tests/models/levit/{test_feature_extraction_levit.py => test_image_processing_levit.py} (100%) rename tests/models/maskformer/{test_feature_extraction_maskformer.py => test_image_processing_maskformer.py} (100%) rename tests/models/mobilenet_v1/{test_feature_extraction_mobilenet_v1.py => test_image_processing_mobilenet_v1.py} (100%) rename tests/models/mobilenet_v2/{test_feature_extraction_mobilenet_v2.py => test_image_processing_mobilenet_v2.py} (100%) rename tests/models/mobilevit/{test_feature_extraction_mobilevit.py => test_image_processing_mobilevit.py} (100%) rename tests/models/owlvit/{test_feature_extraction_owlvit.py => test_image_processing_owlvit.py} (100%) rename tests/models/poolformer/{test_feature_extraction_poolformer.py => test_image_processing_poolformer.py} (100%) rename tests/models/segformer/{test_feature_extraction_segformer.py => test_image_processing_segformer.py} (100%) rename tests/models/videomae/{test_feature_extraction_videomae.py => test_image_processing_videomae.py} (100%) rename tests/models/vilt/{test_feature_extraction_vilt.py => test_image_processing_vilt.py} (100%) rename tests/models/vit/{test_feature_extraction_vit.py => test_image_processing_vit.py} (100%) rename tests/models/yolos/{test_feature_extraction_yolos.py => test_image_processing_yolos.py} (100%) diff --git a/tests/models/beit/test_feature_extraction_beit.py b/tests/models/beit/test_image_processing_beit.py similarity index 100% rename from tests/models/beit/test_feature_extraction_beit.py rename to tests/models/beit/test_image_processing_beit.py diff --git a/tests/models/chinese_clip/test_feature_extraction_chinese_clip.py b/tests/models/chinese_clip/test_image_processing_chinese_clip.py similarity index 100% rename from tests/models/chinese_clip/test_feature_extraction_chinese_clip.py rename to tests/models/chinese_clip/test_image_processing_chinese_clip.py diff --git a/tests/models/clip/test_feature_extraction_clip.py b/tests/models/clip/test_image_processing_clip.py similarity index 100% rename from tests/models/clip/test_feature_extraction_clip.py rename to tests/models/clip/test_image_processing_clip.py diff --git a/tests/models/conditional_detr/test_feature_extraction_conditional_detr.py b/tests/models/conditional_detr/test_image_processing_conditional_detr.py similarity index 100% rename from tests/models/conditional_detr/test_feature_extraction_conditional_detr.py rename to tests/models/conditional_detr/test_image_processing_conditional_detr.py diff --git a/tests/models/convnext/test_feature_extraction_convnext.py b/tests/models/convnext/test_image_processing_convnext.py similarity index 100% rename from tests/models/convnext/test_feature_extraction_convnext.py rename to tests/models/convnext/test_image_processing_convnext.py diff --git a/tests/models/deformable_detr/test_feature_extraction_deformable_detr.py b/tests/models/deformable_detr/test_image_processing_deformable_detr.py similarity index 100% rename from tests/models/deformable_detr/test_feature_extraction_deformable_detr.py rename to tests/models/deformable_detr/test_image_processing_deformable_detr.py diff --git a/tests/models/deit/test_feature_extraction_deit.py b/tests/models/deit/test_image_processing_deit.py similarity index 100% rename from tests/models/deit/test_feature_extraction_deit.py rename to tests/models/deit/test_image_processing_deit.py diff --git a/tests/models/detr/test_feature_extraction_detr.py b/tests/models/detr/test_image_processing_detr.py similarity index 100% rename from tests/models/detr/test_feature_extraction_detr.py rename to tests/models/detr/test_image_processing_detr.py diff --git a/tests/models/donut/test_feature_extraction_donut.py b/tests/models/donut/test_image_processing_donut.py similarity index 100% rename from tests/models/donut/test_feature_extraction_donut.py rename to tests/models/donut/test_image_processing_donut.py diff --git a/tests/models/dpt/test_feature_extraction_dpt.py b/tests/models/dpt/test_image_processing_dpt.py similarity index 100% rename from tests/models/dpt/test_feature_extraction_dpt.py rename to tests/models/dpt/test_image_processing_dpt.py diff --git a/tests/models/flava/test_feature_extraction_flava.py b/tests/models/flava/test_image_processing_flava.py similarity index 100% rename from tests/models/flava/test_feature_extraction_flava.py rename to tests/models/flava/test_image_processing_flava.py diff --git a/tests/models/imagegpt/test_feature_extraction_imagegpt.py b/tests/models/imagegpt/test_image_processing_imagegpt.py similarity index 100% rename from tests/models/imagegpt/test_feature_extraction_imagegpt.py rename to tests/models/imagegpt/test_image_processing_imagegpt.py diff --git a/tests/models/layoutlmv2/test_feature_extraction_layoutlmv2.py b/tests/models/layoutlmv2/test_image_processing_layoutlmv2.py similarity index 100% rename from tests/models/layoutlmv2/test_feature_extraction_layoutlmv2.py rename to tests/models/layoutlmv2/test_image_processing_layoutlmv2.py diff --git a/tests/models/layoutlmv3/test_feature_extraction_layoutlmv3.py b/tests/models/layoutlmv3/test_image_processing_layoutlmv3.py similarity index 100% rename from tests/models/layoutlmv3/test_feature_extraction_layoutlmv3.py rename to tests/models/layoutlmv3/test_image_processing_layoutlmv3.py diff --git a/tests/models/levit/test_feature_extraction_levit.py b/tests/models/levit/test_image_processing_levit.py similarity index 100% rename from tests/models/levit/test_feature_extraction_levit.py rename to tests/models/levit/test_image_processing_levit.py diff --git a/tests/models/maskformer/test_feature_extraction_maskformer.py b/tests/models/maskformer/test_image_processing_maskformer.py similarity index 100% rename from tests/models/maskformer/test_feature_extraction_maskformer.py rename to tests/models/maskformer/test_image_processing_maskformer.py diff --git a/tests/models/mobilenet_v1/test_feature_extraction_mobilenet_v1.py b/tests/models/mobilenet_v1/test_image_processing_mobilenet_v1.py similarity index 100% rename from tests/models/mobilenet_v1/test_feature_extraction_mobilenet_v1.py rename to tests/models/mobilenet_v1/test_image_processing_mobilenet_v1.py diff --git a/tests/models/mobilenet_v2/test_feature_extraction_mobilenet_v2.py b/tests/models/mobilenet_v2/test_image_processing_mobilenet_v2.py similarity index 100% rename from tests/models/mobilenet_v2/test_feature_extraction_mobilenet_v2.py rename to tests/models/mobilenet_v2/test_image_processing_mobilenet_v2.py diff --git a/tests/models/mobilevit/test_feature_extraction_mobilevit.py b/tests/models/mobilevit/test_image_processing_mobilevit.py similarity index 100% rename from tests/models/mobilevit/test_feature_extraction_mobilevit.py rename to tests/models/mobilevit/test_image_processing_mobilevit.py diff --git a/tests/models/owlvit/test_feature_extraction_owlvit.py b/tests/models/owlvit/test_image_processing_owlvit.py similarity index 100% rename from tests/models/owlvit/test_feature_extraction_owlvit.py rename to tests/models/owlvit/test_image_processing_owlvit.py diff --git a/tests/models/poolformer/test_feature_extraction_poolformer.py b/tests/models/poolformer/test_image_processing_poolformer.py similarity index 100% rename from tests/models/poolformer/test_feature_extraction_poolformer.py rename to tests/models/poolformer/test_image_processing_poolformer.py diff --git a/tests/models/segformer/test_feature_extraction_segformer.py b/tests/models/segformer/test_image_processing_segformer.py similarity index 100% rename from tests/models/segformer/test_feature_extraction_segformer.py rename to tests/models/segformer/test_image_processing_segformer.py diff --git a/tests/models/videomae/test_feature_extraction_videomae.py b/tests/models/videomae/test_image_processing_videomae.py similarity index 100% rename from tests/models/videomae/test_feature_extraction_videomae.py rename to tests/models/videomae/test_image_processing_videomae.py diff --git a/tests/models/vilt/test_feature_extraction_vilt.py b/tests/models/vilt/test_image_processing_vilt.py similarity index 100% rename from tests/models/vilt/test_feature_extraction_vilt.py rename to tests/models/vilt/test_image_processing_vilt.py diff --git a/tests/models/vit/test_feature_extraction_vit.py b/tests/models/vit/test_image_processing_vit.py similarity index 100% rename from tests/models/vit/test_feature_extraction_vit.py rename to tests/models/vit/test_image_processing_vit.py diff --git a/tests/models/yolos/test_feature_extraction_yolos.py b/tests/models/yolos/test_image_processing_yolos.py similarity index 100% rename from tests/models/yolos/test_feature_extraction_yolos.py rename to tests/models/yolos/test_image_processing_yolos.py diff --git a/tests/utils/test_add_new_model_like.py b/tests/utils/test_add_new_model_like.py index 856523d19c..55782d287f 100644 --- a/tests/utils/test_add_new_model_like.py +++ b/tests/utils/test_add_new_model_like.py @@ -499,7 +499,7 @@ NEW_BERT_CONSTANT = "value" test_files = {str(Path(f).relative_to(REPO_PATH)) for f in vit_files["test_files"]} vit_test_files = { - "tests/models/vit/test_feature_extraction_vit.py", + "tests/models/vit/test_image_processing_vit.py", "tests/models/vit/test_modeling_vit.py", "tests/models/vit/test_modeling_tf_vit.py", "tests/models/vit/test_modeling_flax_vit.py", @@ -566,7 +566,7 @@ NEW_BERT_CONSTANT = "value" test_files = {str(Path(f).relative_to(REPO_PATH)) for f in vit_files["test_files"]} vit_test_files = { - "tests/models/vit/test_feature_extraction_vit.py", + "tests/models/vit/test_image_processing_vit.py", "tests/models/vit/test_modeling_vit.py", } self.assertEqual(test_files, vit_test_files) @@ -628,7 +628,7 @@ NEW_BERT_CONSTANT = "value" test_files = {str(Path(f).relative_to(REPO_PATH)) for f in vit_files["test_files"]} vit_test_files = { - "tests/models/vit/test_feature_extraction_vit.py", + "tests/models/vit/test_image_processing_vit.py", "tests/models/vit/test_modeling_tf_vit.py", "tests/models/vit/test_modeling_flax_vit.py", } @@ -798,7 +798,7 @@ NEW_BERT_CONSTANT = "value" test_files = {str(Path(f).relative_to(REPO_PATH)) for f in all_vit_files["test_files"]} vit_test_files = { - "tests/models/vit/test_feature_extraction_vit.py", + "tests/models/vit/test_image_processing_vit.py", "tests/models/vit/test_modeling_vit.py", "tests/models/vit/test_modeling_tf_vit.py", "tests/models/vit/test_modeling_flax_vit.py",