Downloads · 30 days
6
33% of all-time downloads
kentarrito/stable-diffusion-2-kanji-finetune-lora
stable-diffusion-2-kanji-finetune-lora is a text-to-image model from kentarrito. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as mit.
This model is a LoRA fine-tuned version of Stable Diffusion 2, trained to generate kanji-like images based on their English meanings.
Downloads · 30 days
6
33% of all-time downloads
All-time downloads
18
Public
Parameters
867M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.6 GB · 100%
From the Hugging Face model README
kentarrito/stable-diffusion-2-kanji-finetune-loraThis model is a LoRA fine-tuned version of Stable Diffusion 2, trained to generate kanji-like images based on their English meanings.
LoRA tuning allows lightweight updates to the base model, making it easier to combine with other LoRA modules or revert to base SD2.0.
from diffusers import StableDiffusionPipeline, UNet2DConditionModel
import torch
from peft import PeftModel
base_model = "stabilityai/stable-diffusion-2"
lora_model = "kentarrito/stable-diffusion-2-kanji-finetune-lora"
pipe = StableDiffusionPipeline.from_pretrained(
base_model, torch_dtype=torch.float16
).to("cuda")
pipe.unet = PeftModel.from_pretrained(pipe.unet, lora_model)
image = pipe(prompt="peace").images[0]
image.show()
🔧 If using the LoRA manually, merge the LoRA weights into the UNet before generation.
See Github
See kentarrito/kanji_dataset
Each image represents a kanji symbol and is paired with a corresponding English word.
stabilityai/stable-diffusion-2diffusers + peftMIT License. Dataset sources follow KanjiVG and KANJIDIC2 licenses.