transformers
Add normalize to image transforms module
#19544
Merged

Add normalize to image transforms module #19544

amyeroberts
amyeroberts Adapt FE methods to transforms library
a94c5377
amyeroberts Mixin for saving the image processor
932f291f
amyeroberts Base processor skeleton
54aed8b3
amyeroberts BatchFeature for packaging image processor outputs
ba55c899
amyeroberts Initial image processor for GLPN
4b430d4d
amyeroberts REmove accidental import
b1c8b59f
amyeroberts Fixup and docs
daf069a2
amyeroberts Mixin for saving the image processor
95b4a6af
amyeroberts Fixup and docs
6f7ef562
amyeroberts Import BatchFeature from feature_extraction_utils
b9ce4a00
amyeroberts Merge branch 'image-processor-mixin' of github.com:amyeroberts/transf…
f02ae6a7
amyeroberts Fixup and docs
6b678fb4
amyeroberts Fixup and docs
db934377
amyeroberts Fixup and docs
bd890d59
amyeroberts Fixup and docs
4b27a340
amyeroberts BatchFeature for packaging image processor outputs
ff0d49ec
amyeroberts Import BatchFeature from feature_extraction_utils
2c2fa9aa
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
b9f78379
amyeroberts Resolve conflicts
346270d0
amyeroberts Import BatchFeature from feature_extraction_utils
7faf2e69
amyeroberts Fixup and docs
ccc15fb6
amyeroberts Fixup and docs
c8f8eb6e
amyeroberts BatchFeature for packaging image processor outputs
90093f4b
amyeroberts Import BatchFeature from feature_extraction_utils
d89c0513
amyeroberts Fixup and docs
9bc91578
amyeroberts Mixin for saving the image processor
6ec382ac
amyeroberts Fixup and docs
56ee6ad2
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
38ebb509
amyeroberts Add rescale back and remove ImageType
6b88d5f8
amyeroberts fix import mistake
67077f1d
amyeroberts Fix enum var reference
82712c76
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
71d666d9
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
fb6438c9
amyeroberts Merge branch 'base-image-processor-class' into image-batch-feature
ffe71b61
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
cc480e82
amyeroberts Can transform and specify image data format
b997a984
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
91064434
amyeroberts Remove redundant function
1b3cf656
amyeroberts Update reference
28604600
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
3e1077bd
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
4264d1a1
amyeroberts Merge in branch and remove conflicts
fb5dcd6d
amyeroberts Add in rescaling
43f561d0
amyeroberts Data format flag for rescale
60c56e5d
amyeroberts Fix typo
9294dbce
amyeroberts Fix dimension check
654cf932
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
13607324
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
936de657
amyeroberts Merge branch 'base-image-processor-class' into image-batch-feature
627c0482
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
1b64c805
amyeroberts Fixes to make IP and FE outputs match
88b82e93
amyeroberts Add tests for transforms
3ea27aa9
amyeroberts Add test for utils
84fdd074
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
10d56b11
amyeroberts Update some docstrings
392e980d
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
2117b94b
amyeroberts Resole merge conflicts
68de9525
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
5208680a
amyeroberts Make sure in channels last before converting to PIL
a28ac88f
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
2ead9e5e
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
9514d54c
amyeroberts Merge branch 'base-image-processor-class' into image-batch-feature
8f63b764
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
46a9c743
amyeroberts Remove default to numpy batching
082e4ff9
amyeroberts Fix up
bf733582
amyeroberts Add docstring and model_input_types
34b6b2fa
amyeroberts Use feature processor config from hub
71502937
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
8678c13a
amyeroberts Merge branch 'base-image-processor-class' into image-batch-feature
937884cf
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
a1b681a6
amyeroberts Alias GLPN feature extractor to image processor
b1db434a
amyeroberts Alias feature extractor mixin
f0c14ee1
amyeroberts Resolve merge conflicts
952c2a0a
amyeroberts Resolve merge conflicts
2f0fa0bc
amyeroberts Resolve merge conflicts
e6233cce
amyeroberts Merge branch 'image-processor-glpn' into rename-fe-to-ip-glpn
ddc8cf95
amyeroberts Merge in main
5407de68
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
f1cf2286
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
bd0afd69
amyeroberts Merge branch 'base-image-processor-class' into image-batch-feature
a6f69bc9
amyeroberts Merge and resolve conflicts
a7af81fb
amyeroberts Merge branch 'image-processor-glpn' into rename-fe-to-ip-glpn
ad58bd94
amyeroberts Add return_numpy=False flag for resize
affb9450
amyeroberts Merge branch 'image-transforms-library' into image-processor-mixin
5891dd85
amyeroberts Merge branch 'image-processor-mixin' into base-image-processor-class
b66d0f60
amyeroberts Merge branch 'base-image-processor-class' into image-batch-feature
8b73f898
amyeroberts Merge branch 'image-batch-feature' into image-processor-glpn
ae6030c3
amyeroberts Merge branch 'image-processor-glpn' into rename-fe-to-ip-glpn
78bdfb39
amyeroberts Fix up
7a4d22a8
amyeroberts Fix up
994e0402
amyeroberts Use different frameworks safely
42c23bda
amyeroberts Safely import PIL
05c65f68
amyeroberts Call function checking if PIL available
feb9556e
amyeroberts Only import if vision available
a30b007d
amyeroberts Address Sylvain PR comments
fd7b6c7b
amyeroberts Apply suggestions from code review
790c2c6d
amyeroberts Update src/transformers/image_transforms.py
2e929cfd
amyeroberts Update src/transformers/models/glpn/feature_extraction_glpn.py
ff04de34
amyeroberts Merge pull request #25 from amyeroberts/image-processor-mixin
cb1dcd82
amyeroberts Add in docstrings
ae358735
amyeroberts Merge pull request #23 from amyeroberts/image-processor-glpn
4fff2672
amyeroberts Merge pull request #26 from amyeroberts/image-batch-feature
62c6e55d
amyeroberts Merge pull request #24 from amyeroberts/rename-fe-to-ip-glpn
271a09df
harrydrippin Fix TFSwinSelfAttention to have relative position index as non-traina…
b7edea03
harrydrippin Refactor `TFSwinLayer` to increase serving compatibility (#18352)
8cacf308
ydshieh Add TF prefix to TF-Res test class (#18481)
e385c5a9
sgugger Remove py.typed (#18485)
ed4b0595
sgugger Fix pipeline tests (#18487)
553be890
sgugger Use new huggingface_hub tools for download models (#18438)
cfa16ebe
ydshieh Fix `test_dbmdz_english` by updating expected values (#18482)
7472b39f
sgugger Move cache folder to huggingface/hub for consistency with hf_hub (#18…
35a534af
ydshieh Update some expected values in `quicktour.mdx` for `resampy 0.3.0` (#…
2c96675d
sgugger Forgot one new_ for cache migration
fc879699
ydshieh disable Onnx test for google/long-t5-tglobal-base (#18454)
e8f57723
julien-c Typo reported by Joel Grus on TWTR (#18493)
707c0ff5
julien-c Just re-reading the whole doc every couple of months 😬 (#18489)
0ff35a8e
julien-c `transformers-cli login` => `huggingface-cli login` (#18490)
1d346569
regisss Add seed setting to image classification example (#18519)
a6101553
Narsil [DX fix] Fixing QA pipeline streaming a dataset. (#18516)
2f493d54
sgugger Clean up hub (#18497)
80c33f8d
pacman100 update fsdp docs (#18521)
c6e979f1
sgugger Fix compatibility with 1.12 (#17925)
2884397e
sgugger Remove debug statement
e9ba674d
ankrgyl Specify en in doc-builder README example (#18526)
dcb1685e
sgugger New cache fixes: add safeguard before looking in folders (#18522)
7072f661
ydshieh unpin resampy (#18527)
c5e228ee
stevhliu ✨ update to use interlibrary links instead of Markdown (#18500)
6952e9b5
stevhliu Add example of multimodal usage to pipeline tutorial (#18498)
8a18ad9c
NielsRogge [VideoMAE] Add model to doc tests (#18523)
e9c67f74
mishig25 Update perf_train_gpu_one.mdx (#18532)
7aa5bfd4
Rasmusafj Update no_trainer.py scripts to include accelerate gradient accumulat…
5606dba1
donelianc Add Spanish translation of converting_tensorflow_models.mdx (#18512)
5b29a580
AguilaCudicio Spanish translation of summarization.mdx (#15947) (#18477)
defa14cd
younesbelkada Let's not cast them all (#18471)
87271d19
NikeNano fix: data2vec-vision Onnx ready-made configuration. (#18427)
a9b29687
chainyo Add mt5 onnx config (#18394)
24f688fc
ydshieh Minor update of `run_call_with_unpacked_inputs` (#18541)
c4654370
younesbelkada BART - Fix attention mask device issue on copied models (#18540)
cafb76e4
Narsil Adding a new `align_to_words` param to qa pipeline. (#18010)
a25b1b3c
stevhliu 📝 update metric with evaluate (#18535)
fdd9c95c
YouJiacheng Restore _init_weights value in no_init_weights (#18504)
5e8a3d44
sgugger Clean up comment
ba982711
stevhliu 📝 update documentation build section (#18548)
3a70590f
younesbelkada `bitsandbytes` - `Linear8bitLt` integration into `transformers` model…
09f36ba1
gante TF: XLA-trainable DeBERTa v2 (#18546)
ca3833e2
sgugger Preserve hub-related kwargs in AutoModel.from_pretrained (#18545)
b84379c4
Rocketknight1 TF Examples Rewrite (#18451)
8d7065ec
sgugger Use commit hash to look in cache instead of calling head (#18534)
c9c54204
julien-c `pipeline` support for `device="mps"` (or any other string) (#18494)
5d390884
stevhliu Update philosophy to include other preprocessing classes (#18550)
0544879b
sgugger Properly move cache when it is not in default path (#18563)
8b987331
unography Adds CLIP to models exportable with ONNX (#18515)
c2fc948f
ydshieh raise atol for MT5OnnxConfig (#18560)
fe29e4c0
mrwyattii fix string (#18568)
793d978d
joihn Segformer TF: fix output size in documentation (#18572)
8aea3311
alaradirik Fix resizing bug in OWL-ViT (#18573)
db07c44e
pocca2048 Fix LayoutLMv3 documentation (#17932)
5a29d4f3
sgugger Skip broken tests
ad4215f9
donebydan Change BartLearnedPositionalEmbedding's forward method signature to s…
a272ed0d
flozi00 german docs translation (#18544)
6d8ab277
iiLaurens Deberta V2: Fix critical trace warnings to allow ONNX export (#18272)
9d87c2de
michaelbenayoun [FX] _generate_dummy_input supports audio-classification models for l…
1c38f1ac
sgugger Fix docstrings with last version of hf-doc-builder styler (#18581)
529ac2bb
dependabot[bot] Bump nbconvert from 6.0.1 to 6.3.0 in /examples/research_projects/lxm…
8a8a9a1c
dependabot[bot] Bump nbconvert in /examples/research_projects/visual_bert (#18566)
5a467992
alaradirik fix owlvit tests, update docstring examples (#18586)
5d1df723
amyeroberts Return the permuted hidden states if return_dict=True (#18578)
f03866fd
ArthurZucker Load sharded pt to flax (#18419)
261f4807
donelianc Add type hints for ViLT models (#18577)
ff90f496
sywangyi update doc for perf_train_cpu_many, add intel mpi introduction (#18576)
1e7062af
stas00 typos (#18594)
c472b595
pacman100 FSDP bug fix for `load_state_dict` (#18596)
8cd549f0
ydshieh Add `TFAutoModelForSemanticSegmentation` to the main `__init__.py` (#…
b0dea996
gante Generate: validate `model_kwargs` (and catch typos in generate argume…
b93957a9
younesbelkada Supporting seq2seq models for `bitsandbytes` integration (#18579)
b881653f
NielsRogge Add Donut (#18488)
a9a0e18e
NielsRogge Fix URLs (#18604)
089ad230
Muennighoff Update BLOOM parameter counts (#18531)
f1590b23
stas00 [doc] fix anchors (#18591)
b2fe78b0
stas00 [fsmt] deal with -100 indices in decoder ids (#18592)
c9d8c70d
younesbelkada small change (#18584)
af92441d
KMFODA Flax Remat for LongT5 (#17994)
2287492b
pacman100 mac m1 `mps` integration (#18598)
c97b0856
ydshieh Change scheduled CIs to use torch 1.12.1 (#18644)
ea2c9924
ydshieh Add checks for some workflow jobs (#18583)
771d6c03
gante TF: Fix generation repetition penalty with XLA (#18648)
b53ef289
flozi00 Update longt5.mdx (#18634)
1769f662
zhoutang776 Update run_translation_no_trainer.py (#18637)
b2dc2f37
younesbelkada [bnb] Minor modifications (#18631)
ab9d3b44
stefan-it Examples: add Bloom support for token classification (#18632)
a316ea33
ydshieh Fix Yolos ONNX export test (#18606)
c6751eac
amyeroberts Fixup
b7046bc8
amyeroberts Fix up
f8a6b878
amyeroberts Resolve conflicts
b6fd4e37
amyeroberts Move PIL default arguments inside function for safe imports
a37bce32
amyeroberts Add image utils to toctree
6ec9dbb2
amyeroberts Update `rescale` method to reflect changes in #18677
76936006
amyeroberts Update docs/source/en/internal/image_processing_utils.mdx
464a4f29
amyeroberts Address Niels PR comments
713e9588
amyeroberts Add normalize method to transforms library
4e60a763
amyeroberts Apply suggestions from code review - remove defaults to None
6ec76ffb
amyeroberts Merge branch 'main' into image-transforms-library
adc0f9d7
amyeroberts Merge branch 'main' into image-transforms-library
df81b6a5
amyeroberts Merge branch 'image-transforms-library' into image-transforms-add-nor…
38a2427e
amyeroberts Fix docstrings and revert to PIL.Image.XXX resampling
48a07a1c
amyeroberts Some more docstrings and PIL.Image tidy up
87852290
amyeroberts Merge branch 'image-transforms-library' into image-transforms-add-nor…
1b2ce563
amyeroberts Reorganise arguments so flags by modifiers
d44fe636
amyeroberts Merge branch 'image-transforms-library' into image-transforms-add-nor…
16991f04
amyeroberts Few last docstring fixes
83330efb
amyeroberts Merge branch 'image-transforms-library' into image-transforms-add-nor…
eba05e21
amyeroberts Merge branch 'main' into image-transforms-library
bad71740
amyeroberts Merge branch 'image-transforms-library' into image-transforms-add-nor…
3191025b
amyeroberts Resolve conflicts with main
3dd6e02c
amyeroberts Add normalize to docs
292f7868
amyeroberts Accept PIL.Image inputs with deprecation warning
7ea393cc
HuggingFaceDocBuilderDev
amyeroberts amyeroberts requested a review from sgugger sgugger 3 years ago
amyeroberts amyeroberts requested a review from alaradirik alaradirik 3 years ago
amyeroberts amyeroberts requested a review from NielsRogge NielsRogge 3 years ago
sgugger
sgugger approved these changes on 2022-10-14
alaradirik
alaradirik approved these changes on 2022-10-17
NielsRogge
NielsRogge approved these changes on 2022-10-17
amyeroberts Update src/transformers/image_transforms.py
0f996616
amyeroberts Update warning to include version
799829bc
amyeroberts Trigger CI - hash clash on doc build
d396382f
amyeroberts amyeroberts merged 4181320b into main 3 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone