Stable Diffusion Base Model from safetensors transfer to diffusers

Steps

File Setup
  1. Clone the ControlNet model repo from HF into a folder like hf_controlnet_model
git clone https://huggingface.co/lllyasviel/sd-controlnet-canny hf_controlnet_model
  1. Download your SD .safetensors of choice into a folder like hf_sd_model
mkdir hf_sd_model
wget -O hf_sd_model/photographyAnd_10.safetensors https://civitai.com/api/download/models/9077
  1. Convert the SD .safetensors model to diffusers format
wget -O enhanced_convert_original_stable_diffusion_to_diffusers.py https://gist.githubusercontent.com/Pyr-000/8513eb989e44d7c4085216fab452d749/raw/2f26a22fe55cb82ce216ad0a035c07558678f6db/enhanced_convert_original_stable_diffusion_to_diffusers.py

python enhanced_convert_original_stable_diffusion_to_diffusers.py --checkpoint_path hf_sd_model/photographyAnd_10.safetensors --dump_path hf_sd_model --extract_ema

你可能感兴趣的:(stable,diffusion)