Downloads · 30 days
0
mulanai/mulan-lang-adapter
mulan-lang-adapter is a machine learning model from mulanai. 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.
What is it ? We present MuLan, a versatile framework to equip any diffusion model with multilingual generation abilities natively by up to 110+ languages around the world. With properly trained text encoder from noisy…
Downloads · 30 days
0
Access
Public
Updated May 14, 2024
Repo size
793 MB
Likes
9
Public
Click a slice to open those files.
.pth769 MB · 100%
From the Hugging Face model README
What is it ?
We present MuLan, a versatile framework to equip any diffusion model with multilingual generation abilities natively by up to 110+ languages around the world. With properly trained text encoder from noisy data, we demonstrate that MuLan could be trained on English only data and support other languages zero-shot. Additionally, we introduce Language Adapter. A language adapter with less than 20M parameters, trained against a frozen denoiser and a text encoder, can be readily combined with any homologous community models/tools, such as LoRA, LCM, ControlNet, and IP-Adapter, without any finetuning.
https://github.com/mulanai/MuLan
Examples:
# pip install mulankit
from diffusers import StableDiffusionPipeline
+ import mulankit
pipe = StableDiffusionPipeline.from_pretrained('Lykon/dreamshaper-8')
+ pipe = mulankit.transform(pipe, 'mulanai/mulan-lang-adapter::sd15_aesthetic.pth')
image = pipe('一只蓝色的🐶 in the 바다').images[0]