Decorators for deprecation and named arguments validation #30799
qubvel
changed the title Clean up `do_reduce_labels` for image processors Clean up `reduce_labels` for image processors 2 years ago
qubvel
marked this pull request as draft 2 years ago
qubvel
force pushed
2 years ago
qubvel
commented
on 2024-05-24
molbap
commented
on 2024-05-31
qubvel
changed the title Clean up `reduce_labels` for image processors Decorators for deprecation and named arguments validation 2 years ago
qubvel
force pushed
2 years ago
qubvel
marked this pull request as ready for review 2 years ago
qubvel
commented
on 2024-06-06
molbap
commented
on 2024-06-07
Fix do_reduce_labels for maskformer image processor
88bdb33a
Deprecate reduce_labels in favor to do_reduce_labels
70f751be
Deprecate reduce_labels in favor to do_reduce_labels (segformer)
ea1e7f8f
Deprecate reduce_labels in favor to do_reduce_labels (oneformer)
7c7260da
Deprecate reduce_labels in favor to do_reduce_labels (maskformer)
d0af4632
Deprecate reduce_labels in favor to do_reduce_labels (mask2former)
ff579675
Fix typo
9f6244b6
Update mask2former test
1e4c62c2
fixup
a8680285
Update segmentation examples
d469f103
Update docs
c0c21583
Fixup
71b17795
Imports fixup
43bddbc1
Add deprecation decorator draft
4a6f126b
Add deprecation decorator
0ed33fde
Fixup
57be5186
Add deprecate_kwarg decorator
de2fa104
Validate kwargs decorator
f4c5d790
Kwargs validation (beit)
43d994e0
fixup
42fed61a
Kwargs validation (mask2former)
c126072b
Kwargs validation (maskformer)
f7544365
Kwargs validation (oneformer)
7c3408c2
Kwargs validation (segformer)
5fcbed82
Better message
928bef0b
Fix oneformer processor save-load test
06bb9e32
Update src/transformers/utils/deprecation.py
701738eb
Update src/transformers/utils/deprecation.py
0a36c13b
Update src/transformers/utils/deprecation.py
d8c22d46
Update src/transformers/utils/deprecation.py
e900e19a
Better handle classmethod warning
48234a9c
Fix typo, remove warn
adc65a5f
Add header
dcb16e36
Docs and `additional_message`
9bd294fa
Move to filter decorator ot generic
262d0952
Proper deprecation for semantic segm scripts
0cfe8078
Add to __init__ and update import
ecbbeeb4
Basic tests for filter decorator
691b794f
Fix doc
99498d69
Override `to_dict()` to pop depracated `_max_size`
7db46832
Pop unused parameters
813f7833
Fix trailing whitespace
56110e7f
Add test for deprecation
55ff2922
Add deprecation warning control parameter
002e15d1
Update generic test
d63e9562
Fixup deprecation tests
36712cc6
Introduce init service kwargs
79f850c3
Revert popping unused params
96ac0f05
Revert oneformer test
42c11ca1
Allow "metadata" to pass
95d1d210
Better docs
cc7a190a
Fix test
25cf421e
Add notion in docstring
75a7de2f
Fix notification for both names
9af7d7a7
Add func name to warning message
a04b02b5
Fixup
50f2c10f
qubvel
force pushed
to
50f2c10f
2 years ago
qubvel
merged
517df566
into main 2 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub