Patrick Ribbsaeter
d961a388fd
fix(image_processor): maintain 3-tuple return contract in InpaintProcessor.preprocess when mask is None ( #14481 )
...
fix(image_processor): preserve 3-tuple return contract when mask is None (#14470 )
Ensure InpaintProcessor.preprocess returns (image, None, postprocessing_kwargs) when mask is None, preserving the expected 3-tuple return contract and signature consistency across all preprocess branches. Consolidate unit tests into a parameterized test covering with-mask, without-mask, and crop configurations.
2026-10-07 22:24:47 -10:00
Sayak Paul
7aa57aafff
[tests] Migrate tests/others to pytest. ( #14299 )
...
* download kernels when users request for it.
* migrate tests/others to pytest
* Revert "download kernels when users request for it."
This reverts commit 6fe34ade6b .
---------
Co-authored-by: dg845 <58458699+dg845@users.noreply.github.com >
2026-08-04 23:03:21 +08:00
Sayak Paul
5f33428194
update licensing for others to 2026. ( #14128 )
...
Co-authored-by: dg845 <58458699+dg845@users.noreply.github.com >
2026-07-08 07:40:20 +05:30
Sayak Paul
62cce3045d
[chore] change to 2025 licensing for remaining ( #11741 )
...
change to 2025 licensing for remaining
2025-06-18 20:56:00 +05:30
Dhruv Nair
edc154da09
Update Ruff to latest Version ( #10919 )
...
* update
* update
* update
* update
2025-04-09 16:51:34 +05:30
Sayak Paul
30e5e81d58
change to 2024 in the license ( #6902 )
...
change to 2024
2024-02-08 08:19:31 -10:00
Anh71me
28254c79b6
Fix type annotation ( #5146 )
...
* Fix type annotation on Scheduler.from_pretrained
* Fix type annotation on PIL.Image
2023-09-25 19:26:39 +02:00
Nikhil Gajendrakumar
8ccb619416
VaeImageProcessor: Allow image resizing also for torch and numpy inputs ( #4832 )
...
Co-authored-by: Nikhil Gajendrakumar <nikhilkatte@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-08-29 22:45:05 +02:00
YiYi Xu
b7b1a30bc4
refactor prepare_mask_and_masked_image with VaeImageProcessor ( #4444 )
...
* refactor image processor for mask
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2023-08-25 08:18:48 -10:00
YiYi Xu
a7f25b4a88
Postprocessing refactor img2img ( #3268 )
...
* refactor img2img VaeImageProcessor.postprocess
* remove copy from for init, run_safety_checker, decode_latents
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
---------
Co-authored-by: yiyixuxu <yixu@yis-macbook-pro.lan >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-05-01 07:54:09 -10:00
Patrick von Platen
3a9d7d9758
[Tests] parallelize ( #3078 )
...
* [Tests] parallelize
* finish folder structuring
* Parallelize tests more
* Correct saving of pipelines
* make sure logging level is correct
* try again
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
---------
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2023-04-13 13:32:57 +01:00