🚀 Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style模型
該項目提供了用於black-forest-labs/FLUX.1-dev
的LoRA權重,能夠生成具有剪紙風格的圖像,可通過特定關鍵詞觸發圖像生成,使用diffusers
庫即可輕鬆調用。
🚀 快速開始
你可以使用以下代碼調用此模型生成圖像:
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style', weight_name='Flux_1_Dev_LoRA_Paper-Cutout-Style.safetensors')
image = pipeline('Gal Gadot as wonderwoman, Paper Cutout Style').images[0]
更多關於加載、加權、合併和融合LoRAs的詳細信息,請查看 diffusers中加載LoRAs的文檔。
✨ 主要特性
- 特定風格生成:能夠生成具有剪紙風格的圖像。
- 易於使用:藉助
diffusers
庫,簡單幾行代碼即可實現圖像生成。
- 多場景支持:可根據不同的文本提示生成多樣化的圖像。
📦 安裝指南
文檔未提供具體安裝命令,故跳過此章節。
💻 使用示例
基礎用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style', weight_name='Flux_1_Dev_LoRA_Paper-Cutout-Style.safetensors')
image = pipeline('Gal Gadot as wonderwoman, Paper Cutout Style').images[0]
高級用法
文檔未提供高級用法代碼示例,故跳過此部分。
📚 詳細文檔
模型描述
這些是用於black-forest-labs/FLUX.1-dev
的Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style
LoRA權重。權重是使用 fal.ai Flux訓練器 進行訓練的。
觸發詞
你應該使用 Paper Cutout Style
來觸發圖像生成。
數據集
該模型使用了Norod78/PaperCutoutStyle
數據集進行訓練。
示例展示
文本提示 |
輸出圖像 |
The cookie monster, Paper Cutout Style |
點擊查看 |
Gal Gadot as wonderwoman, Paper Cutout Style |
點擊查看 |
The Joker, Paper Cutout Style |
點擊查看 |
A green Cthulhu is rising from the blue sea in a great lightning storm, based on a story by H.P. Lovecraft, Paper Cutout Style |
點擊查看 |
Kermit the frog, Paper Cutout Style |
點擊查看 |
🔧 技術細節
文檔未提供具體的技術實現細節,故跳過此章節。
📄 許可證
請遵守 此處 描述的許可條款。