🚀 Flux-Mexican-CPunk-LoRA模型
Flux-Mexican-CPunk-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 = "strangerzonehf/Flux-Mexican-CPunk-LoRA"
trigger_word = "Mexican Cyberpunk"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發詞使用
你應該使用 Mexican Cyberpunk
來觸發圖像生成。
模型下載
此模型的權重以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 = "strangerzonehf/Flux-Mexican-CPunk-LoRA"
trigger_word = "Mexican Cyberpunk"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = 'Mexican Cyberpunk, A side-view drawing of a vibrant orange motorcycle parked against a graffiti-covered wall. The motorcycle has glowing purple wheels and a black, sleek body with a logo reading "RAPTOR MX." Above the bike, the wall features a mural of a futuristic Aztec warrior in neon green and pink tones. The background is a mix of vibrant urban decay and glowing holographic advertisements.'
image = pipe(prompt).images[0]
image.save("output.png")
📚 詳細文檔
圖像處理參數
參數 |
值 |
參數 |
值 |
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 |
16 & 2200 |
Epoch |
15 |
Save Every N Epochs |
1 |
標註信息
標註方式:florence2 - en(自然語言 & 英語)
訓練使用的總圖像數
用於訓練的總圖像數:14 [自動填充]
最佳尺寸與推理
尺寸 |
縱橫比 |
推薦情況 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默認 |
推理範圍
🔧 技術細節
暫未提供相關技術細節。
📄 許可證
本模型使用的許可證為:creativeml - openrail - m。
