santa hat
deerdeer nosedeer glow
Sign In

Convert 1.5 to Diffusers!

32
340
6
Type
Other
Stats
177
Reviews
Published
Dec 29, 2023
Base Model
Other
Hash
AutoV2
883A7F9EB3

SD 1.5 Model Converter

A Colab Notebook To Convert SD 1.5 Checkpoint to Diffusers format

Discord Invite

Huggingface Earth & Dusk

Dusk's Kofi

Updated the model converter script/notebook - https://github.com/duskfallcrew/sd15-to-diffusers - Noted that if a model has incorrect keys and it wont do the diffusers convert? there's an extra module in there for that, PLUS there's a module in there for cleaning your folders so you dont have to do it manually AND you save heaps of space not having to reconnect!

Patched from: https://colab.research.google.com/github/Linaqruf/sdxl-model-converter/blob/main/sdxl_model_converter.ipynb

For those unaware this is what your conversions to Diffusers looks like:

This is a specific type of file format that not everyone needs, or wants. Right now specific use cases are for people using Google colab notebooks for DIFFUSERS format because there's no way you can use a GUI anymore for WebUI. (Which is a User Interface, they banned ALL user interfaces for PRO and paid and free users - includign Emjoy i beleive, and fiftyoneai. You won't get banne for TRYING to use Fiftyoneai in Holo's colab, becues it still hs python in it, but it won't allow for Remote UIs for no reason other than pure cash grab).

SOME SPONSORED websites use diffusers. Noting that does not mean that you can willy nilly use this to mooch something without crediting. A lot of sponsors are trying to do the right thing by either crediting, or sponsoring. Don't take that up with me, take that up with any site that does this lol. Just cause i'm sponsored doesn't mean i'm duct tape lipped! :P

WHAT CHANGES:

Patched the conversion, that finally works without needing to edit a python command.

Fixed an error from the original colab that didn't work - added back in Linaqurf's config/dict code.

Added fun, but snarky comments that print out after upload.

KNowing this works on my one it should work on yours.

Future ideas:

  • Looking to port PT to safetensors into the same notebook.

  • Looking to port inference for testing into the same notebook.

  • Looking to figure out how to convert a different vae.

If you're interested in tipping please hit me up: https://ko-fi.com/duskfallcrew

WHAT FILES:

♻ - There's a python file - use at your own risk - but the NOTEBOOK file is your main file, nothing needs to be fixed - otherwise just open from github here: https://github.com/duskfallcrew/sd15-to-diffusers

♻ - THIS IN THEORY SHOULD WORK ON VAST/RUNPOD - BUT IT IS UNTESTED, JUST CHANGE YOUR DIRECTORIES AS NEEDED!

RIGHT NOW THE INSTRUCTIONS ARE AS FOLLOWS:

♻ - Install/Clone etc

♻ - Download model - Direct port from Linaqruf.

♻ - Check your details, tick the button for safetensors.

♻ - Check file browser, if the model/yourmodelhere looks like a diffusers format you're good to go!

♻ - Write Token + Set up your Repo!

♻ - Upload Diffusers! - Cry when it says you owe me five (cause you don't, i wrote a joke print in there)

---

Disclaimer:

I've tried to use Chat GPT to actually fix the original code, there are TWO notebooks in here, both work "AS NOTEBOOKS" but it's the conversion code from the Kohya trainer /SS repo that keeps failing with "LIBRARY MODULE NOT FOUND".

I don't know how to program, i'm a duct taper not a programmer Jim!

SPECIAL THANKS TO: HOLOSTRAWBERRY - LINAQRUF - ASHIRAAI- EARTHNICITY

While we ARE SPONSORED BY PIRATE DIFFUSION THIS IS NOT A MODEL THAT IS SOMETHING they will use, it was more so that 1.5 conversions stopped working. If you know how to port this to gradio or something and make it work then sweet!

(Also it was because our sponsor wanted more of our models, and their converter wasn't working.)

DO NOT ONSELL THIS PACKAGE - it is not entirely mine, Linaqruf made the original colab, and largely most of the scripting that went into the badly patched PY scripts that are duplicated in the zip file. Kohya-SS is the scripts by Kohya of course, and Huggingface did the diffusers repo! The V2 Colab runs off the original diffusers script.

DUSK - WHY DID YOU DO THIS WHEN YOU HAVE A COMPUTER?

....

Anyone wanna fund a full ass upgrade? -

(That'd cost like 5k NZD, so no, dw about it lol)

You wanna fund our RAM UPGRADE?

Duskfall/ Earth & Dusk Socials