1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-10-27 21:33:02 +03:00
Files
diffusers/tests
Shadow_Lu 265b3f4e4a Fix callback tensor inputs that are never bound in the denoising loop (#14416)
Drop callback tensor inputs that are never bound in the denoising loop

LEditsPPPipelineStableDiffusion allows prompt_embeds, LEditsPPPipelineStableDiffusionXL
allows negative_add_time_ids and StableDiffusionXLControlNetUnionInpaintPipeline allows
masked_image_latents, but none of those names exist as locals in the respective __call__,
so callback_kwargs[k] = locals()[k] raises KeyError as soon as a user requests them.

Add a test_callback_inputs fast test to both LEdits++ test classes, which are plain
unittest.TestCase and therefore never ran the PipelineTesterMixin callback tests.

Co-authored-by: dg845 <58458699+dg845@users.noreply.github.com>
2026-08-27 20:17:24 -07:00
..
2026-07-21 13:12:27 +05:30