diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

[Community Pipeline] Checkpoint Merger based on Automatic1111

Open Abhinay1997 opened this issue 2 years ago • 3 comments

The checkpoint merger pipeline based on the discussion at #877.

Tested the checkpoint merger for the case with two checkpoints.

Abhinay1997 avatar Nov 29 '22 14:11 Abhinay1997

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten could you have a look at this once you're free ?

Abhinay1997 avatar Nov 30 '22 02:11 Abhinay1997

This looks very cool! Could you add an entry to the table here and also add a section of how to use your community pipeline? :-)

https://github.com/huggingface/diffusers/blob/main/examples/community/README.md#community-examples

patrickvonplaten avatar Nov 30 '22 12:11 patrickvonplaten

@Abhinay1997 is this a clean redevelopment, or does it use code from the Automatic1111 repository?

Unfortunately Automatic1111 (deliberately) does not have a license for his code, and it can't be legally used in other projects.

hafriedlander avatar Dec 02 '22 10:12 hafriedlander

@hafriedlander, only the interpolation functions are from Automatic1111 but they are originally from Wikipedia. Last I checked, Automatic1111 had changed their code in the current version.

Abhinay1997 avatar Dec 02 '22 10:12 Abhinay1997

I was using https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/fdecb636855748e03efc40c846a0043800aadfcc/modules/extras.py as reference. Basic interpolation functions are strictly math equations right ? Everything else i.e loading the checkpoints, comparing the attributes and running the merged pipeline is all a clean rewrite.

What do you think @patrickvonplaten ?

Abhinay1997 avatar Dec 02 '22 11:12 Abhinay1997

Meanwhile, I have added the docs in the README as suggested Patrick.

Abhinay1997 avatar Dec 02 '22 16:12 Abhinay1997

Thanks!

patrickvonplaten avatar Dec 05 '22 13:12 patrickvonplaten