amyeroberts
f53fe35b29
Fast image processor ( #28847 )
...
* Draft fast image processors
* Draft working fast version
* py3.8 compatible cache
* Enable loading fast image processors through auto
* Tidy up; rescale behaviour based on input type
* Enable tests for fast image processors
* Smarter rescaling
* Don't default to Fast
* Safer imports
* Add necessary Pillow requirement
* Woops
* Add AutoImageProcessor test
* Fix up
* Fix test for imagegpt
* Fix test
* Review comments
* Add warning for TF and JAX input types
* Rearrange
* Return transforms
* NumpyToTensor transformation
* Rebase - include changes from upstream in ImageProcessingMixin
* Safe typing
* Fix up
* convert mean/std to tesnor to rescale
* Don't store transforms in state
* Fix up
* Update src/transformers/image_processing_utils_fast.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com >
* Update src/transformers/models/auto/image_processing_auto.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com >
* Update src/transformers/models/auto/image_processing_auto.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com >
* Update src/transformers/models/auto/image_processing_auto.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com >
* Warn if fast image processor available
* Update src/transformers/models/vit/image_processing_vit_fast.py
* Transpose incoming numpy images to be in CHW format
* Update mapping names based on packages, auto set fast to None
* Fix up
* Fix
* Add AutoImageProcessor.from_pretrained(checkpoint, use_fast=True) test
* Update src/transformers/models/vit/image_processing_vit_fast.py
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com >
* Add equivalence and speed tests
* Fix up
---------
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com >
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com >
2024-06-11 15:47:38 +01:00
..
2024-03-25 10:33:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 17:50:18 +01:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-06-11 15:47:38 +01:00
2024-06-03 19:08:41 +08:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 17:50:18 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-06-07 17:50:18 +01:00
2024-06-07 17:50:18 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-03-25 10:33:38 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-03-13 14:53:27 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-03-13 14:53:27 +01:00
2024-04-17 12:19:18 +02:00
2024-06-10 15:16:58 +02:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2023-03-22 20:02:24 +01:00
2024-05-22 06:40:15 +02:00
2024-03-25 10:33:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-05-23 17:18:58 +02:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-04-01 07:51:00 +00:00
2023-06-29 10:17:36 +01:00
2024-06-11 15:47:38 +01:00
2024-03-25 10:33:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-05-23 16:53:07 +01:00
2024-03-25 10:33:38 +01:00
2024-06-04 10:09:24 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-06-05 13:52:16 +02:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2023-08-02 20:22:36 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-03-13 14:53:27 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 11:51:41 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-05-24 08:38:58 -07:00
2024-06-07 17:50:18 +01:00
2024-06-11 15:47:38 +01:00
2024-03-25 10:33:38 +01:00
2024-06-03 15:16:28 +02:00
2024-05-17 16:51:31 +02:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 17:50:18 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-06-07 17:50:18 +01:00
2024-06-06 13:37:29 +05:00
2024-06-07 17:50:18 +01:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 17:50:18 +01:00
2024-03-13 14:53:27 +01:00
2024-05-22 06:40:15 +02:00
2022-05-03 14:42:02 +02:00
2024-06-07 19:40:26 +01:00
2024-06-04 18:04:08 +02:00
2024-05-22 06:40:15 +02:00
2024-03-13 14:53:27 +01:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-05-23 18:27:54 +02:00
2024-05-22 06:40:15 +02:00
2024-06-07 17:50:18 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 17:50:18 +01:00
2024-05-23 18:53:26 +02:00
2024-06-07 17:50:18 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-10 11:22:39 +02:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 17:50:18 +01:00
2024-06-07 17:50:18 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-03-13 14:53:27 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 17:50:18 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 17:50:18 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-03-14 16:48:11 +01:00
2024-05-22 06:40:15 +02:00
2024-04-19 17:32:52 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-06-04 10:09:24 +01:00
2024-06-04 10:09:24 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-05-28 11:36:26 +02:00
2024-06-07 19:40:26 +01:00
2024-06-07 17:50:18 +01:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-05-28 18:07:07 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-03-25 10:33:38 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 17:50:18 +01:00
2024-06-07 17:50:18 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-05-24 08:38:58 -07:00
2024-06-07 17:50:18 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-05-22 06:40:15 +02:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-11 15:47:38 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-05-22 06:40:15 +02:00
2024-05-20 13:40:42 +02:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-06-07 19:40:26 +01:00
2024-03-25 10:33:38 +01:00
2024-04-02 10:27:26 +02:00
2024-03-13 14:53:27 +01:00
2024-06-06 14:44:35 +01:00
2024-05-22 06:40:15 +02:00
2024-06-04 10:09:24 +01:00
2024-06-11 15:47:38 +01:00
2024-05-22 06:40:15 +02:00
2022-05-03 14:42:02 +02:00