Created
November 10, 2023 07:11
-
-
Save alfredplpl/b2cd2f99adad328ca0059d446820e476 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT | |
from diffusers import StableDiffusionXLPipeline | |
import torch | |
pipe = StableDiffusionXLPipeline.from_single_file('/path/to/checkpoint.safetensors', torch_dtype=torch.float16) | |
pipe.save_pretrained('/path/to/diffusers_version') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment