Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/models/beit/test_image_processing_beit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from transformers.testing_utils import require_torch, require_vision, slow
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/convnext/test_image_processing_convnext.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from transformers.testing_utils import require_torch, require_vision, slow
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/deit/test_image_processing_deit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/detr/test_image_processing_detr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from transformers.testing_utils import require_torch, require_vision, slow
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/donut/test_image_processing_donut.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import is_flaky, require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/dpt/test_image_processing_dpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.file_utils import is_torch_available, is_vision_available
from transformers.testing_utils import require_torch, require_vision

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/flava/test_image_processing_flava.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/glpn/test_image_processing_glpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/layoutlmv2/test_image_processing_layoutlmv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_pytesseract, require_torch
from transformers.utils import is_pytesseract_available, is_torch_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/layoutlmv3/test_image_processing_layoutlmv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_pytesseract, require_torch
from transformers.utils import is_pytesseract_available, is_torch_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/levit/test_image_processing_levit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/maskformer/test_image_processing_maskformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/mobilevit/test_image_processing_mobilevit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/oneformer/test_image_processing_oneformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/oneformer/test_processor_oneformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from transformers.testing_utils import check_json_file_has_correct_format, require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import prepare_image_inputs
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/owlvit/test_image_processing_owlvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/poolformer/test_image_processing_poolformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/segformer/test_image_processing_segformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/videomae/test_image_processing_videomae.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_video_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_video_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/vilt/test_image_processing_vilt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/vit/test_image_processing_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
3 changes: 2 additions & 1 deletion tests/models/yolos/test_image_processing_yolos.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from transformers.testing_utils import require_torch, require_vision, slow
from transformers.utils import is_torch_available, is_vision_available

from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_image_processing_common import prepare_image_inputs


if is_torch_available():
Expand Down
Loading