A Colab Notebook To Convert SD 1.5 Checkpoint to Diffusers format This was patched heavily and recoded from the SDXL branch of Linaqruf's now archived colab. We're porting our patches to our github with gracious credit to the original coders.
convert_sdxl_to_diffusers.py not found, downloading...
Traceback (most recent call last):
File "/content/convert_sdxl_to_diffusers.py", line 4, in <module>
from diffusers import StableDiffusionXLPipeline
File "/usr/local/lib/python3.10/dist-packages/diffusers/__init__.py", line 38, in <module>
from .models import (
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/__init__.py", line 33, in <module>
from .controlnet_flax import FlaxControlNetModel
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/controlnet_flax.py", line 25, in <module>
from .modeling_flax_utils import FlaxModelMixin
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/modeling_flax_utils.py", line 45, in <module>
class FlaxModelMixin:
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/modeling_flax_utils.py", line 194, in FlaxModelMixin
def init_weights(self, rng: jax.random.KeyArray) -> Dict:
File "/usr/local/lib/python3.10/dist-packages/jax/_src/deprecations.py", line 54, in getattr
raise AttributeError(f"module {module!r} has no attribute {name!r}")
AttributeError: module 'jax.random' has no attribute 'KeyArray'
Before diving in, ensure you create a Hugging Face token with write permissions. Follow this link for instructions on token creation.
You need to create a huggingface token, go to this link, then create new token
or copy available token with the Write
role.
Step | Instructions |
---|---|
â™» - | Install/Clone etc |
â™» - | Download model |
â™» - | Put your model details in. |
â™» - | DUMP PATH = folder name |
â™» - | If your downloaded model is safetensors please tick the box. |
â™» - | 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! |
Link Name | Description | Link |
---|---|---|
Huggingface Backup | backup checkpoints! | |
SD 1.5 Conversion to Diffusers | Convert SD 1.5 to Diffusers | |
SDXL Conversion to Diffusers | Convert SDXL to Diffusers | |
Discord | E&D Discord | Invite |
CivitAi | Duskfallcrew @ Civitai | Duskfallcrew |
Huggingface | E&D Huggingface | Earth & Dusk |
Ko-Fi | Kofi Support | |
Github | Duskfallcrew Github | Duskfallcrew |
Youtube: | Duskfall Music | Duskfall Music & More |
Spotify: | E&D Royalty Free | PLAYLIST |
DA Group | AI Group | DeviantArt Group |
Earth & Dusk | Subreddit |
I am NOT A programmer by nature, I patch with what little knowledge I have. I Failed programming several times over the years, so if something needs cleaning up and you want to patch it - pull request it!
We are a system of over 300 alters, proudly navigating life with Dissociative Identity Disorder, ADHD, Autism, and CPTSD. We believe in the potential of AI to break down barriers and enhance aspects of mental health, even as it presents challenges. Our creative journey is an ongoing exploration of identity and expression, and we invite you to join us in this adventure.
Future ideas:
-
Looking to port PT to safetensors into the same notebook.
-
Looking to figure out how to manage to get the conversions to roll on google drive for more space options.
-
Porting it to VastAi/Runpod
Cancelled Ideas that don't make sense for this product
- Looking to port inference for testing into the same notebook. - Not sure why you'd need this unless you're training, I think this was in the SDXL one from Linaqruf, but this isn't required on this one.
- Looking to figure out how to convert a different vae. - I could NOT get this to work no matter what I did. I have some THEORIES, but i'm not a programmer.
Patched Origin | Description | Link |
---|---|---|
Patched from | ARCHIVED | SDXL - Linaqruf |
Linaqruf @ Github: | https://github.com/Linaqruf | |
Linaqruf Ko-Fi | ||
Linaqruf Saweria |