Downloads · 30 days
36
5% of all-time downloads
lapeyrade/kanji2english
kanji2english is a text-to-image model from lapeyrade. 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.
<iThis is a model ran on only one epoch on Google Colab free version for proof of concepts purpose. Do not expect extraordinary resutls.</i
Downloads · 30 days
36
5% of all-time downloads
All-time downloads
790
Public
Repo size
123 MB
Likes
0
Public
Click a slice to open those files.
.bin79.1 MB · 64%
From the Hugging Face model README
<i>This is a model ran on only one epoch on Google Colab free version for proof of concepts purpose. Do not expect extraordinary resutls.</i>
<img src="./generated_kanji_examples.jpg" width="500">These are LoRA adaptation weights for CompVis/stable-diffusion-v1-4. The weights were fine-tuned on the sylvainlapeyrade/kanji_english_meaning dataset to generate Kanji images based on English descriptions. This model provides a novel approach to visualizing the artistic representation of Kanji characters through a text-to-image generation process, using the powerful Stable Diffusion architecture enhanced with LoRA layers for fine-tuning.
This model uses LoRA (Low-Rank Adaptation) layers to fine-tune the Stable Diffusion v1-4 model specifically for the task of generating Kanji images from English text descriptions. The fine-tuning process was conducted using the sylvainlapeyrade/kanji_english_meaning dataset, which contains a collection of Kanji characters and their corresponding English meanings.
This model is intended to be used with the diffusers library. Here is an example of how to generate an image from text:
from diffusers import LoraDiffusionPipeline
# Load the pipeline
pipe = LoraDiffusionPipeline.from_pretrained("sylvainlapeyrade/kanji2english")
# Generate an image
prompt = "a kanji meaning a Doge"
image = pipe(prompt).images[0]
# Save or display the image
image.save("kanji_doge.png")
This model has been trained specifically for generating Kanji characters from English text inputs with the <i>"a kanji meaning"</i> sequence and may not generalize well to other text-to-image tasks outside this scope. Additionally, the accuracy of the generated images may vary depending on the complexity and rarity of the Kanji.
Special thanks to the creators of the KANJIDIC and KanjiVG projects for providing the data sources used during training.
This model is released under the CreativeML Open RAIL-M license, which allows for non-commercial use, sharing, and adaptation with attribution.