MCPcopy
hub / github.com/XPixelGroup/DiffBIR / convert_diffusers_to_sd.py

File convert_diffusers_to_sd.py

scripts/convert_diffusers_to_sd.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# https://github.com/huggingface/diffusers/blob/main/scripts/convert_diffusers_to_original_stable_diffusion.py
2
3# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint.
4# *Only* converts the UNet, VAE, and Text Encoder.

Callers

nothing calls this directly

Calls 5

convert_unet_state_dictFunction · 0.85
convert_vae_state_dictFunction · 0.85
saveMethod · 0.45

Tested by

no test coverage detected