🚀 紫色夢幻通量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/Purple-Dreamy-Flux-LoRA"
trigger_word = "Purple Dreamy"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發圖像生成
你應該使用 Purple Dreamy
來觸發圖像生成。
模型下載
此模型的權重以Safetensors格式提供。
點擊下載 ,可在“文件與版本”選項卡中獲取。
✨ 主要特性
- 文本到圖像生成:根據輸入的文本描述生成對應的圖像。
- LoRA技術:基於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/Purple-Dreamy-Flux-LoRA"
trigger_word = "Purple Dreamy"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
📚 詳細文檔
模型描述
prithivMLmods/Purple-Dreamy-Flux-LoRA
圖像生成參數
屬性 |
詳情 |
LR調度器 |
constant |
噪聲偏移 |
0.03 |
優化器 |
AdamW |
多分辨率噪聲折扣 |
0.1 |
網絡維度 |
64 |
多分辨率噪聲迭代次數 |
10 |
網絡Alpha值 |
32 |
重複次數與步數 |
22 & 2.2K |
訓練輪數 |
15 |
每N輪保存一次 |
1 |
標註方式:florence2 - en(自然語言 & 英語)
用於訓練的總圖像數量:17 [高分辨率]
最佳尺寸
數據來源
模型託管地址
🧨 模型託管在此處:https://huggingface.co/spaces/prithivMLmods/FLUX-LoRA-DLC
模型示例展示
示例文本及輸出圖像
- 文本:'Purple Dreamy, a medium - angle shot of a young woman with long brown hair, wearing a pair of eye - level glasses, stands in front of a backdrop of purple and white lights. The womans eyes are closed, her lips are slightly parted, as if she is looking up at the sky. Her hair is cascading over her shoulders, framing her face. She is wearing a sleeveless bra, adorned with tiny white dots, and a gold chain necklace around her neck. Her left earrings are dangling from her ears, adding a pop of color to the scene.'
輸出圖像:點擊查看
- 文本:'Purple Dreamy, a sparrow is perched on a branch, facing the left side of the frame. The sparrows head is turned slightly to the right, with its beak pointed towards the left. Its eyes are a piercing blue, and its wings are a light brown, while its tail is a darker shade of brown. The birds beak is pointed to the left, and its eyes are slightly open. The background is blurred, but it is a soft, pinkish hue. There are twigs and branches behind the sparrow, adding a pop of color to the scene.'
輸出圖像:點擊查看
- 文本:'Purple Dreamy, a medium - sized woman with long dark brown hair, wearing a pink sleeveless dress adorned with white dots. Her eyes are closed, and her lips are slightly parted, as if she is sleeping. Her left arm is raised in the air, while her right arm is stretched out to the side. She is wearing a gold necklace with a pendant, adding a touch of charm to her outfit. The backdrop is a vibrant pink, with a starburst effect.'
輸出圖像:點擊查看
其他示例圖像

📄 許可證
本模型使用的許可證為:creativeml - openrail - m
⚠️ 重要提示
該模型仍處於訓練階段,這不是最終版本,可能會包含瑕疵,並且在某些情況下表現不佳。