Repository navigation
Remove gen_img_diffusers.py, the old SD1.x / SD2.x image generation script - #2439
Merged
Merged
Conversation
…cript It has not worked since the refactoring removed `train_util.load_tokenizer` (the only thing it needed to run again), and gen_img.py supports everything it did except the experimental CLIP / VGG16 guidance. No user has reported the breakage, so rather than keeping 4,000 lines of duplicated code alive, remove it. The file remains available in the previous releases. The remaining references in the docs (train_network_README-ja / -zh and train_ti_README-ja) now point to gen_img.py. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Sep 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
gen_img_diffusers.py, the old image generation script for SD1.x / SD2.x, and points the remaining doc references togen_img.py.train_util.load_tokenizer(it fails withAttributeErrorright after loading the models). This was found while checking the sampler fixes of Fix the dpmsolver / dpmsingle samplers and give a clear error for lms without scipy #2438.dpmsolverfix of Fix the dpmsolver / dpmsingle samplers and give a clear error for lms without scipy #2438), and with that patch applied txt2img, LoRA, SD2 v-prediction and Textual Inversion were confirmed to work locally. But no user has reported the breakage,gen_img.pysupports everything it did except the experimental CLIP / VGG16 guidance (--clip_guidance_scale,--clip_image_guidance_scale,--vgg16_guidance_scale,--vgg16_guidance_layer), and keeping 4,000 lines of duplicated code alive would only add maintenance cost. The file remains available in the previous releases.Changes
gen_img_diffusers.py.docs/train_network_README-ja.md,docs/train_network_README-zh.md,docs/train_ti_README-ja.md: the "generate with the script in this repository" sections now refer togen_img.py(and link togen_img_README). The English docs already did.library/sampling.py: a comment referring to the old script.🤖 Generated with Claude Code