Instructions to use WarriorMama777/OrangeMixs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WarriorMama777/OrangeMixs with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("WarriorMama777/OrangeMixs", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
how to load model.safetensors (that has been uploaded in gdrive) to sd webui google colab ?
I have the file model.safetensors already in my gdrive (downloaded from civitai) & i want to load the model to SD webui but i can't make it works. Any tips?
here's the current code i used :
!pip install --upgrade fastapi==0.90.0
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
!git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
###########################################################################################################################################################
#model
from google.colab import drive
drive.mount('/content/drive')
!curl -Lo model.safetensors '/content/drive/MyDrive/safetensor/model.safetensors'
!mv "/content/model.safetensors" "/content/stable-diffusion-webui/models/Stable-diffusion"
#AbyssOrangeMix2sfw
!curl -Lo AbyssOrangeMix2_sfw.safetensors 'https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix2/AbyssOrangeMix2_sfw.safetensors'
!mv "/content/AbyssOrangeMix2_sfw.safetensors" "/content/stable-diffusion-webui/models/Stable-diffusion"
###########################################################################################################################################################
!curl -Lo orangemix.vae.pt https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/VAEs/orangemix.vae.pt
!curl -Lo bad_prompt_version2.pt https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt
!mv "/content/orangemix.vae.pt" "/content/stable-diffusion-webui/models/Stable-diffusion"
!mv "/content/bad_prompt_version2.pt" "/content/stable-diffusion-webui/embeddings"
%cd /content/stable-diffusion-webui
!git checkout 11d432d # temporary fix
!COMMANDLINE_ARGS="--share --gradio-debug --medvram --disable-safe-unpickle --xformers --ckpt-dir /content/drive/MyDrive/safetensor/model.safetensors" REQS_FILE="requirements.txt" python launch.py
!cp "/content/drive/MyDrive/safetensor/model.safetensors" "/content/stable-diffusion-webui/models/Stable-diffusion"
