can you provide example code to run this model?

#1
by reasearcheasy - opened

can you provide example code to run this model

nevermind! i found the code.

from diffusers import AutoPipelineForText2Image
pipeline = AutoPipelineForText2Image.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
pipeline.load_lora_weights("alvdansen/colorized-blockprints", weight_name='araminta_k_colorized_blockprint.safetensors')
images = pipeline(prompt="cat").images[0]
images.save('outim.png')

Sign up or log in to comment