🚀 Yellow-Pop-Flux-Dev-LoRA
Yellow-Pop-Flux-Dev-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/Yellow-Pop-Flux-Dev-LoRA"
trigger_word = "Yellow Pop"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發圖像生成
你應該使用 Yellow Pop
來觸發圖像生成。
模型下載
該模型的權重以 Safetensors 格式提供。
點擊下載,可在 Files & versions 選項卡中獲取。
✨ 主要特性
- 文本到圖像轉換:根據輸入的文本提示生成相應的圖像。
- 特定風格:生成具有 “Yellow Pop” 風格的圖像。
- 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/Yellow-Pop-Flux-Dev-LoRA"
trigger_word = "Yellow Pop"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
高級用法
文檔中未提及高級用法的代碼示例,可根據具體需求進一步探索模型的功能。
📚 詳細文檔
模型描述
prithivMLmods/Yellow-Pop-Flux-Dev-LoRA
屬性 |
詳情 |
基礎模型 |
black-forest-labs/FLUX.1-dev |
實例提示詞 |
Yellow Pop |
許可證 |
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 |
22 & 2600 |
Epoch |
15 |
Save Every N Epochs |
1 |
標註
使用 florence2 - en(自然語言 & 英語)進行標註。
訓練使用的總圖像數
22 張
最佳尺寸
數據來源
🔧 技術細節
該模型基於 LoRA 技術,結合了 black-forest-labs/FLUX.1-dev
基礎模型進行訓練。在訓練過程中,使用了特定的圖像處理參數,如 LR Scheduler、Optimizer 等,以優化模型性能。同時,使用了 22 張圖像進行訓練,並採用了 florence2 - en 進行標註。
📄 許可證
該模型使用 creativeml-openrail-m
許可證。
⚠️ 重要提示
該模型仍處於訓練階段,這不是最終版本,可能會包含偽影,並且在某些情況下表現不佳。
💡 使用建議
建議在使用時使用 Yellow Pop
作為觸發詞,以獲得最佳的圖像生成效果。同時,可根據具體需求調整圖像處理參數,以滿足不同的應用場景。
模型展示
示例圖像
文本提示 |
輸出圖像 |
'Yellow Pop, A medium-sized bulldog stands in front of a vibrant pink background. The bulldogs face is prominently displayed, with its mouth slightly open. Its eyes are wide open, and its ears are perked up. Its mouth is slightly open, revealing a black nose. Its muzzle is adorned with small black dots, adding a pop of color to the scene. The dogs coat is a light brown, with a purple collared shirt underneath it. The coat has a black collar with a few buttons on it.' |
images/YP1.png |
'Yellow Pop, An eye-level painting of a tree with a yellow base and a thick trunk. The trees leaves are a vibrant shade of green, while the base is a lighter shade of yellow. The background is a deep pink, and the trees shadow is cast on the ground below the tree, creating a striking contrast of colors. The leaves are arranged in a way that creates a sense of depth and dimension, adding a pop of color to the scene.' |
images/YP2.png |
'Yellow Pop, A digital art painting of a woman in a pink jacket and a yellow turtleneck. The womans hair is styled in a bun and she is wearing a pair of pink tinted glasses. Her eyes are blue and her lips are pink. Her hair is pulled back in a ponytail. She is wearing large silver hoop earrings on both sides of her ears. The background of the painting is a vibrant yellow.' |
images/YP3.png |