Downloads · 30 days
0
0% of all-time downloads
souljoy/sd-pokemon-model-lora-zh
sd-pokemon-model-lora-zh is a machine learning model from souljoy. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as apache-2.0.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
698
Public
Repo size
3.3 MB
Likes
6
Public
Click a slice to open those files.
.bin3.3 MB · 69%
From the Hugging Face model README
pip install -U diffusers
pip install transformers
from diffusers import StableDiffusionPipeline
import torch
pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Anime-Chinese-v0.1", torch_dtype=torch.float16)
model_path = "souljoy/sd-pokemon-model-lora-zh"
pipe.unet.load_attn_procs(model_path)
pipe.to("cuda")
prompt = "粉色的蝴蝶"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image
prompt = "可爱的狗"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image
prompt = "漂亮的猫"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image
