kentarrito/kanji_dataset
Viewer β’ Updated β’ 16.7k β’ 5
How to use kentarrito/stable-diffusion-2-kanji-finetune with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("kentarrito/stable-diffusion-2-kanji-finetune", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]kentarrito/stable-diffusion-2-kanji-finetune
This is a full fine-tuned version of Stable Diffusion 2 on a custom dataset of kanji characters and their English meanings. The model was trained to generate kanji-style images based on English prompts such as "fire", "mountain", or "peace".
from diffusers import StableDiffusionPipeline
import torch
pipe = StableDiffusionPipeline.from_pretrained(
"kentarrito/stable-diffusion-2-kanji-finetune",
torch_dtype=torch.float16
).to("cuda")
image = pipe(prompt="fire").images[0]
image.show()
See Github
The dataset was built using:
kentarrito/kanji_datasetEach training sample pairs an image of a kanji with one of its English meanings.
stabilityai/stable-diffusion-2diffusersMIT License. Dataset sources are licensed under their respective terms.
Base model
stabilityai/stable-diffusion-2