transformers/tests/utils
amyeroberts a6b7759880
Add Image Processors (#19796)
* Add CLIP image processor

* Crop size as dict too

* Update warning

* Actually use logger this time

* Normalize doesn't change dtype of input

* Add perceiver image processor

* Tidy up

* Add DPT image processor

* Add Vilt image processor

* Tidy up

* Add poolformer image processor

* Tidy up

* Add LayoutLM v2 and v3 imsge processors

* Tidy up

* Add Flava image processor

* Tidy up

* Add deit image processor

* Tidy up

* Add ConvNext image processor

* Tidy up

* Add levit image processor

* Add segformer image processor

* Add in post processing

* Fix up

* Add ImageGPT image processor

* Fixup

* Add mobilevit image processor

* Tidy up

* Add postprocessing

* Fixup

* Add VideoMAE image processor

* Tidy up

* Add ImageGPT image processor

* Fixup

* Add ViT image processor

* Tidy up

* Add beit image processor

* Add mobilevit image processor

* Tidy up

* Add postprocessing

* Fixup

* Fix up

* Fix flava and remove tree module

* Fix image classification pipeline failing tests

* Update feature extractor in trainer scripts

* Update pad_if_smaller to accept tuple and int size

* Update for image segmentation pipeline

* Update src/transformers/models/perceiver/image_processing_perceiver.py

Co-authored-by: Alara Dirik <8944735+alaradirik@users.noreply.github.com>

* Update src/transformers/image_processing_utils.py

Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>

* Update src/transformers/models/beit/image_processing_beit.py

Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>

* PR comments - docstrings; remove accidentally added resize; var names

* Update docstrings

* Add exception if size is not in the right format

* Fix exception check

* Fix up

* Use shortest_edge in tuple in script

Co-authored-by: Alara Dirik <8944735+alaradirik@users.noreply.github.com>
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
2022-11-02 11:57:36 +00:00
..
__init__.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_activations_tf.py TF: Add sigmoid activation function (#16819) 2022-04-19 16:13:08 +01:00
test_activations.py Fix activations being all the same module (#19728) 2022-10-18 11:56:45 -04:00
test_add_new_model_like.py Reorganize file utils (#16264) 2022-03-23 10:26:33 -04:00
test_cli.py CLI: reenable pt_to_tf test (#18108) 2022-07-12 13:38:05 +01:00
test_convert_slow_tokenizer.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_doc_samples.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_file_utils.py Fix cached_file in offline mode for cached non-existing files (#19206) 2022-09-26 18:01:00 -04:00
test_generic.py Refactor conversion function (#19799) 2022-10-24 13:48:40 -04:00
test_hf_argparser.py Added tests for yaml and json parser (#19219) 2022-09-27 16:25:57 -04:00
test_hub_utils.py More tests for regression in cached non existence (#19216) 2022-09-27 09:36:34 -04:00
test_image_processing_utils.py Add Image Processors (#19796) 2022-11-02 11:57:36 +00:00
test_image_utils.py Add normalize to image transforms module (#19544) 2022-10-17 17:02:14 +01:00
test_logging.py Clean up utils.hub using the latest from hf_hub (#18857) 2022-09-02 10:30:06 -04:00
test_model_card.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_model_output.py Reorganize file utils (#16264) 2022-03-23 10:26:33 -04:00
test_modeling_tf_core.py Update serving code to enable saved_model=True (#18153) 2022-07-22 18:05:38 +01:00
test_offline.py Make sharded checkpoints work in offline mode (#18125) 2022-07-13 12:43:08 -04:00
test_skip_decorators.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_versions_utils.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00