← Lab
negcrop
confirmedupstream bugPython · diffusersSystems & data structuresJuly 24, 2026
the question
Does SDXL base img2img/inpaint honor negative_crops_coords_top_left in _get_add_time_ids?
what came out
diffusers SDXL _get_add_time_ids packs the positive crops_coords_top_left into the negative micro-conditioning vector on the non-aesthetic branch, the default for the SDXL base model, silently ignoring negative_crops_coords_top_left while honoring the negative original_size and target_size. Affects img2img, inpaint, and ControlNet img2img pipelines.
method & receipts
- Result: confirmed
- Reproducible — one script re-runs the whole thing from scratch.
- Tested — a correctness/benchmark suite ships alongside the code.
→ read the code and re-run it
github.com/v-code01/negcrop