Downloads · 30 days
3
1% of all-time downloads
miluELK/Taiyi-sd-pokemon-LoRA-zh-512-v2
Taiyi-sd-pokemon-LoRA-zh-512-v2 is a text-to-image model from miluELK. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
use the following code to generate image
Downloads · 30 days
3
1% of all-time downloads
All-time downloads
524
Public
Repo size
136 MB
Likes
1
Public
Click a slice to open those files.
.083 MB · 61%
From the Hugging Face model README
use the following code to generate image
import os
from diffusers import StableDiffusionPipeline
import torch
import random
prompt="可爱的,黄色的老鼠,小精灵,卡通"
seed=random.randint(1,2147483647)
print(seed)
pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Anime-Chinese-v0.1",
torch_dtype=torch.float16,)
model_path = "miluELK/Taiyi-sd-pokemon-LoRA-zh-512-v2"
pipe.unet.load_attn_procs(model_path)
pipe.to("cuda")
generator = torch.Generator("cuda").manual_seed(seed)
pipe.safety_checker = lambda images, clip_input: (images, False)
image = pipe(prompt, generator=generator, num_inference_steps=50, guidance_scale=7.5).images[0]
image.save("./" + prompt + ".png")
image
These are LoRA adaption weights for IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Anime-Chinese-v0.1. The weights were fine-tuned on the svjack/pokemon-blip-captions-en-zh dataset. You can find some example images in the following.
