Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project with support for using chaiNNer compatible models from the command line (site addition?) #330

Open
Teriks opened this issue Dec 14, 2023 · 3 comments

Comments

@Teriks
Copy link

Teriks commented Dec 14, 2023

I added support for using chainner compatible upscaling / restoration models to my CLI stable diffusion tool recently. It is a batch generation tool focused on mass generation of images, and automating image generation tasks via scripting, which is used entirely from the command line.

The models from OpenModelDB can be used as a post-processor or pre-processor for diffusion based image generation, or standalone on images, animated images, and videos.

It is implemented in a generic way along side various other image processors in the command line tool which can be used in a similar manner.

It uses tiled upscaling similar to ComfyUI, the code for this is adapted from chainner

I saw on the website a listing of compatible software, and to create a ticket.

I figured it might be of interest, I have been working on this for fun :)

https://github.com/Teriks/dgenerate

Some example uses with the upscaler image processor:

https://github.com/Teriks/dgenerate/tree/v3.0.2?tab=readme-ov-file#upscaling-with-chainner-compatible-upscaler-models

https://github.com/Teriks/dgenerate/blob/v3.0.2/examples/stablediffusion_xl/postprocessors/upscaler-config.txt

https://github.com/Teriks/dgenerate/blob/v3.0.2/examples/config_directives/image_process/upscaler-config.txt

Latest Windows Installer:

https://github.com/Teriks/dgenerate/releases/tag/v3.0.2

@Teriks Teriks changed the title Project with support using chaiNNer compatible models from the command line (site addition?) Project with support for using chaiNNer compatible models from the command line (site addition?) Dec 14, 2023
@joeyballentine
Copy link
Contributor

Neat peoject. FYI we recently moved all our model related code out of chaiNNer and into a new package called spandrel which we recommend using instead of vendoring all that code. Using that will get you support for more models. It should be pretty easy to swap over. For an example, check out my currently ignored PR I made for comfyui

@Teriks
Copy link
Author

Teriks commented Dec 15, 2023

I'll definitely check that out, I think something similar should probably be done for ControlNet annotators as controlnet_aux seems somewhat unmaintained and the detectors implemented there are very useful. I have abstracted image processors so it should be easy to swap it out, but it might take me a bit to look at it

Neat peoject. FYI we recently moved all our model related code out of chaiNNer and into a new package called spandrel which we recommend using instead of vendoring all that code. Using that will get you support for more models. It should be pretty easy to swap over. For an example, check out my currently ignored PR I made for comfyui

@Teriks
Copy link
Author

Teriks commented Dec 15, 2023

this is a much easier change to make than I had figured, so I will definitely be swapping it over after some testing, it seems like it drops in just fine 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants