🚀 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
許可證。