## Using LoRA to fine-tune HunyuanDiT ### Instructions The dependencies and installation are basically the same as the [**base model**](https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2). We provide two types of trained LoRA weights for you to test. Then download the model using the following commands: ```bash cd HunyuanDiT # Use the huggingface-cli tool to download the model. huggingface-cli download Tencent-Hunyuan/HYDiT-LoRA --local-dir ./ckpts/t2i/lora # Quick start python sample_t2i.py --prompt "青花瓷风格,一只猫在追蝴蝶" --no-enhance --load-key ema --lora-ckpt ./ckpts/t2i/lora/porcelain --infer-mode fa ``` Examples of training data and inference results are as follows:
| Examples of training data | |||
![]() |
![]() |
![]() |
![]() |
| 青花瓷风格,一只蓝色的鸟儿站在蓝色的花瓶上,周围点缀着白色花朵,背景是白色 (Porcelain style, a blue bird stands on a blue vase, surrounded by white flowers, with a white background. ) | 青花瓷风格,这是一幅蓝白相间的陶瓷盘子,上面描绘着一只狐狸和它的幼崽在森林中漫步,背景是白色 (Porcelain style, this is a blue and white ceramic plate depicting a fox and its cubs strolling in the forest, with a white background.) | 青花瓷风格,在黑色背景上,一只蓝色的狼站在蓝白相间的盘子上,周围是树木和月亮 (Porcelain style, on a black background, a blue wolf stands on a blue and white plate, surrounded by trees and the moon.) | 青花瓷风格,在蓝色背景上,一只蓝色蝴蝶和白色花朵被放置在中央 (Porcelain style, on a blue background, a blue butterfly and white flowers are placed in the center.) |
| Examples of inference results | |||
![]() |
![]() |
![]() |
![]() |
| 青花瓷风格,苏州园林 (Porcelain style, Suzhou Gardens.) | 青花瓷风格,一朵荷花 (Porcelain style, a lotus flower.) | 青花瓷风格,一只羊(Porcelain style, a sheep.) | 青花瓷风格,一个女孩在雨中跳舞(Porcelain style, a girl dancing in the rain.) |