🚀 Flux_Cute3D
Flux_Cute3D是一個基於特定模型訓練的文本到圖像生成項目。通過特定的觸發詞,它能生成具有特定風格的圖像,可藉助diffusers庫方便地使用。
🚀 快速開始
你可以按照以下步驟快速使用Flux_Cute3D進行圖像生成:
- 確保你已經安裝了必要的依賴庫,如
diffusers
和torch
。
- 使用以下代碼進行圖像生成:
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('SebastianBodza/flux_cute3D', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
對於更多細節,包括LoRAs的加權、合併和融合,請查看diffusers中加載LoRAs的文檔。
✨ 主要特性
- 特定風格生成:使用觸發詞
NEOCUTE3D
可以觸發特定風格的圖像生成。
- 便捷集成:可以與🧨 diffusers庫輕鬆集成,方便使用。
💻 使用示例
基礎用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('SebastianBodza/flux_cute3D', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
高級用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('SebastianBodza/flux_cute3D', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
📚 詳細文檔
觸發詞
你應該使用NEOCUTE3D
來觸發圖像生成。
訓練信息
該項目在Replicate上使用以下鏈接進行訓練:
https://replicate.com/ostris/flux-dev-lora-trainer/train
示例展示
以下是一些示例提示和對應的輸出圖像:
提示文本 |
輸出圖像 |
NEOCUTE3D of Picture a valiant knight in shining armor, mounted on a gallant steed, charging with a lance towards an opponent in a lively medieval fair setting |
騎士 |
NEOCUTE3D of a astronaut in a high-tech space suit stepping onto an alien landscape, proudly planting a flag as colorful alien flora surrounds them |
宇航員 |
NEOCUTE3D of a street musician playing the violin with a colorful background |
小提琴手 |
NEOCUTE3D of a cyclist riding through a scenic mountain trail |
自行車手 |
NEOCUTE3D of a ninja doing a high kick |
忍者 |
NEOCUTE3D of a a cute monster |
可愛怪物 |
📄 許可證
本項目使用的許可證為flux-1-dev-non-commercial-license。
屬性 |
詳情 |
模型類型 |
基於black-forest-labs/FLUX.1-dev 的文本到圖像生成模型 |
訓練數據 |
未明確提及 |