Downloads · 30 days
22
8% of all-time downloads
jonathandinu/sdxl-metamorphosis-lora
sdxl-metamorphosis-lora is a text-to-image model from jonathandinu. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as cc0-1.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
22
8% of all-time downloads
All-time downloads
278
Public
Repo size
29.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors23.4 MB · 87%
From the Hugging Face model README
These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were fine-tuned on illustrations from Maria Sibylla Merian’s Metamorphosis Insectorum Surinamensium (1705).

LoRA for the text encoder was enabled: False.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
from diffusers import DiffusionPipeline, AutoencoderKL, utils
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", vae=vae, torch_dtype=torch.float16, variant="fp16")
pipeline.to("cuda")
pipeline.load_lora_weights("jonathandinu/sdxl-metamorphosis-lora", weight_name="pytorch_lora_weights.safetensors")
pipeline(
prompt="an astronaut in the jungle",
num_inference_steps=30,
generator=torch.manual_seed(1)
).images[0]
from diffusers import AutoPipelineForImage2Image
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/img2img-sdxl-init.png"
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipeline = AutoPipelineForImage2Image.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", vae=vae, torch_dtype=torch.float16, variant="fp16")
pipeline.to("cuda")
pipeline.load_lora_weights("jonathandinu/sdxl-metamorphosis-lora", weight_name="pytorch_lora_weights.safetensors")
pipeline(
prompt="an astronaut in the jungle",
image=init_image,
num_inference_steps=30,
generator=torch.manual_seed(1),
strength=0.7
).images[0]
[TODO: provide examples of latent issues and potential remediations]
[TODO: describe the data used to train the model]