transformers
Fast image processor
#28847
Merged

Fast image processor #28847

amyeroberts
HuggingFaceDocBuilderDev
amyeroberts amyeroberts added WIP
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts amyeroberts added run-slow
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts amyeroberts marked this pull request as ready for review 1 year ago
amyeroberts
amyeroberts commented on 2024-05-17
amyeroberts
amyeroberts commented on 2024-05-17
sayakpaul
sayakpaul commented on 2024-05-18
qubvel
qubvel commented on 2024-05-20
amyeroberts amyeroberts force pushed 1 year ago
qubvel
qubvel commented on 2024-05-22
amyeroberts amyeroberts force pushed 1 year ago
ArthurZucker
ArthurZucker approved these changes on 2024-06-05
amyeroberts
amyeroberts commented on 2024-06-05
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts
qubvel
qubvel commented on 2024-06-06
amyeroberts
amyeroberts Draft fast image processors
68a1e757
amyeroberts Draft working fast version
dbf9959e
amyeroberts py3.8 compatible cache
3632cf70
amyeroberts Enable loading fast image processors through auto
49196c81
amyeroberts Tidy up; rescale behaviour based on input type
6fc2901e
amyeroberts Enable tests for fast image processors
834ae6af
amyeroberts Smarter rescaling
6d5c328e
amyeroberts Don't default to Fast
eb701c11
amyeroberts Safer imports
415be88d
amyeroberts Add necessary Pillow requirement
fb895154
amyeroberts Woops
d2eb99f2
amyeroberts Add AutoImageProcessor test
fc1530e8
amyeroberts Fix up
a3f6d027
amyeroberts Fix test for imagegpt
e0bd18df
amyeroberts Fix test
8c4761a8
amyeroberts Review comments
687da888
amyeroberts Add warning for TF and JAX input types
fc1e1216
amyeroberts Rearrange
1077938b
amyeroberts Return transforms
5cb11df6
amyeroberts NumpyToTensor transformation
fff70c3e
amyeroberts Rebase - include changes from upstream in ImageProcessingMixin
8b096226
amyeroberts Safe typing
8d82609c
amyeroberts Fix up
849e27bb
amyeroberts convert mean/std to tesnor to rescale
fdd4e5de
amyeroberts Don't store transforms in state
0ad7e710
amyeroberts Fix up
1b5885b4
amyeroberts Update src/transformers/image_processing_utils_fast.py
e29150ca
amyeroberts Update src/transformers/models/auto/image_processing_auto.py
a1f718b6
amyeroberts Update src/transformers/models/auto/image_processing_auto.py
af52ee2c
amyeroberts Update src/transformers/models/auto/image_processing_auto.py
34b8859b
amyeroberts Warn if fast image processor available
5e7a30d4
amyeroberts Update src/transformers/models/vit/image_processing_vit_fast.py
2d756071
amyeroberts Transpose incoming numpy images to be in CHW format
a43cabc3
amyeroberts Update mapping names based on packages, auto set fast to None
6acf27f4
amyeroberts Fix up
a38d3ee8
amyeroberts Fix
942286f7
amyeroberts Add AutoImageProcessor.from_pretrained(checkpoint, use_fast=True) test
954ee20f
amyeroberts Update src/transformers/models/vit/image_processing_vit_fast.py
ee06a6af
amyeroberts Add equivalence and speed tests
1d1d4166
amyeroberts Fix up
d598b5aa
amyeroberts amyeroberts force pushed to d598b5aa 1 year ago
amyeroberts amyeroberts merged f53fe35b into main 1 year ago
amyeroberts amyeroberts deleted the fast-image-processor branch 1 year ago
SangbumChoi
SangbumChoi commented on 2024-06-12

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone