transformers/docs/source/en/tasks
Pavel Iakubovskii 517df566f5
Decorators for deprecation and named arguments validation (#30799)
* Fix do_reduce_labels for maskformer image processor

* Deprecate reduce_labels in favor to do_reduce_labels

* Deprecate reduce_labels in favor to do_reduce_labels (segformer)

* Deprecate reduce_labels in favor to do_reduce_labels (oneformer)

* Deprecate reduce_labels in favor to do_reduce_labels (maskformer)

* Deprecate reduce_labels in favor to do_reduce_labels (mask2former)

* Fix typo

* Update mask2former test

* fixup

* Update segmentation examples

* Update docs

* Fixup

* Imports fixup

* Add deprecation decorator draft

* Add deprecation decorator

* Fixup

* Add deprecate_kwarg decorator

* Validate kwargs decorator

* Kwargs validation (beit)

* fixup

* Kwargs validation (mask2former)

* Kwargs validation (maskformer)

* Kwargs validation (oneformer)

* Kwargs validation (segformer)

* Better message

* Fix oneformer processor save-load test

* Update src/transformers/utils/deprecation.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/utils/deprecation.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/utils/deprecation.py

Co-authored-by: Pablo Montalvo <39954772+molbap@users.noreply.github.com>

* Update src/transformers/utils/deprecation.py

Co-authored-by: Pablo Montalvo <39954772+molbap@users.noreply.github.com>

* Better handle classmethod warning

* Fix typo, remove warn

* Add header

* Docs and `additional_message`

* Move to filter decorator ot generic

* Proper deprecation for semantic segm scripts

* Add to __init__ and update import

* Basic tests for filter decorator

* Fix doc

* Override `to_dict()` to pop depracated `_max_size`

* Pop unused parameters

* Fix trailing whitespace

* Add test for deprecation

* Add deprecation warning control parameter

* Update generic test

* Fixup deprecation tests

* Introduce init service kwargs

* Revert popping unused params

* Revert oneformer test

* Allow "metadata" to pass

* Better docs

* Fix test

* Add notion in docstring

* Fix notification for both names

* Add func name to warning message

* Fixup

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Co-authored-by: Pablo Montalvo <39954772+molbap@users.noreply.github.com>
2024-06-10 12:35:10 +01:00
..
asr.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
audio_classification.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
document_question_answering.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
idefics.md [Docs] Fix broken links and syntax issues (#28918) 2024-02-08 14:13:35 -08:00
image_captioning.md 🚨🚨🚨Deprecate evaluation_strategy to eval_strategy🚨🚨🚨 (#30190) 2024-04-18 12:49:43 -04:00
image_classification.md Add missing dependencies in image classification example (#30820) 2024-05-15 08:38:30 +02:00
image_feature_extraction.md Fix header in IFE task guide (#29859) 2024-03-26 12:32:37 +01:00
image_to_image.md Image-to-Image Task Guide (#26595) 2023-10-16 15:12:03 +02:00
knowledge_distillation_for_image_classification.md 🚨🚨🚨Deprecate evaluation_strategy to eval_strategy🚨🚨🚨 (#30190) 2024-04-18 12:49:43 -04:00
language_modeling.md Docs: fix generate-related rendering issues (#30600) 2024-05-02 14:42:25 +01:00
mask_generation.md Mask Generation Task Guide (#28897) 2024-02-14 18:29:49 +00:00
masked_language_modeling.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
monocular_depth_estimation.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
multiple_choice.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
object_detection.md Update object detection with latest resize and pad strategies (#30955) 2024-05-23 00:13:56 +01:00
prompting.md Fix doctest more (for docs/source/en) (#30247) 2024-04-15 14:10:59 +02:00
question_answering.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
semantic_segmentation.md Decorators for deprecation and named arguments validation (#30799) 2024-06-10 12:35:10 +01:00
sequence_classification.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
summarization.md Docs: fix generate-related rendering issues (#30600) 2024-05-02 14:42:25 +01:00
text-to-speech.md Update text-to-speech.md (#31269) 2024-06-06 21:59:22 +01:00
token_classification.md Remove task guides auto-update in favor of links towards task pages (#30429) 2024-04-24 09:38:10 +02:00
translation.md Docs: fix generate-related rendering issues (#30600) 2024-05-02 14:42:25 +01:00
video_classification.md Fix Issue #29817 Video Classification Task Guide Using Undeclared Variables (#30457) 2024-04-25 13:49:30 +01:00
visual_question_answering.md VQA task guide (#25244) 2023-08-09 08:29:06 -04:00
zero_shot_image_classification.md Fix dependencies for image classification example (#30842) 2024-05-17 13:57:47 +01:00
zero_shot_object_detection.md [Docs] Update README and default pipelines (#28864) 2024-02-12 10:21:36 +01:00