🚀 Ton618-Tarot-Cards-Flux-LoRA
本项目是一个基于LoRA的文生图模型,可根据特定提示词生成塔罗牌风格的图像,为塔罗牌相关的创意设计提供了强大的工具。
🚀 快速开始
环境设置
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/Ton618-Tarot-Cards-Flux-LoRA"
trigger_word = "Tarot card"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
✨ 主要特性
- 能够根据输入的文本提示,生成具有塔罗牌风格的精美图像。
- 提供了丰富的图像生成参数设置,可灵活调整生成效果。
📦 安装指南
本模型的权重以Safetensors格式提供,你可以在 Files & versions 标签页 下载。
💻 使用示例
基础用法
以下是使用该模型生成塔罗牌图像的示例:
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/Ton618-Tarot-Cards-Flux-LoRA"
trigger_word = "Tarot card"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = "Tarot Card: An illustration of a woman with fair skin and natural, wavy hair cascading in soft curls around her face. She has striking, light-colored eyes and defined brows that convey depth and wisdom. Dressed in a red and navy plaid shirt, partially unbuttoned to reveal a white undershirt, her sleeves are rolled up casually to her forearms. She leans thoughtfully against a weathered, blue door frame with peeling paint, adding a rustic, vintage charm. Below her, the words 'THE DREAMER' are inscribed. In the top corner, a small crescent moon symbol signifies introspection, while the Roman numeral 'VII' is above, representing inner vision and contemplation."
image = pipe(prompt).images[0]
image.save("generated_tarot_card.png")
📚 详细文档
模型描述
prithivMLmods/Ton618-Tarot-Cards-Flux-LoRA
属性 |
详情 |
模型类型 |
LoRA(Low-Rank Adaptation) |
基础模型 |
black-forest-labs/FLUX.1-dev |
触发词 |
Tarot card |
许可证 |
creativeml-openrail-m |
图像生成参数
参数 |
值 |
参数 |
值 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Multires Noise Iterations |
10 |
Network Alpha |
32 |
Repeat & Steps |
21 & 2K |
Epoch |
13 |
Save Every N Epochs |
1 |
标注信息
标注使用 florence2-en
(自然语言 & 英语)。
训练数据
总共使用了 17 张高分辨率图像进行训练。
示例图像与提示词

提示词 |
塔罗牌:一位皮肤白皙、自然卷曲的头发如柔软的卷发般垂落在脸庞周围的女子的插画。她有一双引人注目的浅色眼睛和轮廓分明的眉毛,传达出深度和智慧。她穿着一件红蓝色格子衬衫,部分纽扣解开,露出白色的内衣,袖子随意地卷到前臂。她若有所思地靠在一扇破旧的蓝色门框上,门框上的油漆已经剥落,增添了一种质朴、复古的魅力。在她下方,刻着“THE DREAMER”字样。在左上角,一弯新月象征着内省,而上方的罗马数字“VII”代表着内在的洞察力和沉思。 |
数据源
触发词
你应该使用 Tarot card
来触发图像生成。
📄 许可证
本模型使用 creativeml-openrail-m
许可证。