🚀 Flux DreamBooth LoRA - data-is-better-together/image-preferences-flux-dev-lora
Flux DreamBooth LoRA是基於特定數據集訓練的模型,可用於文本到圖像的生成任務,為圖像創作提供了多樣化的選擇。
🚀 快速開始
你可以按照以下步驟快速使用該模型進行圖像生成:
- 下載模型的LoRA權重文件。
- 使用
diffusers
庫加載基礎模型和LoRA權重。
- 輸入觸發詞進行圖像生成。
✨ 主要特性
- 多風格支持:支持多種圖像風格,如
Cinematic
(電影風格)、Photographic
(攝影風格)、Anime
(動漫風格)等。
- 基於DreamBooth訓練:使用DreamBooth技術進行訓練,能夠更好地學習特定概念。
- 與diffusers庫集成:可以方便地與
diffusers
庫結合使用。
📦 安裝指南
本README未提及具體安裝步驟,若要使用該模型,可參考以下通用步驟:
- 確保你已經安裝了
diffusers
庫:
pip install diffusers
- 安裝其他依賴庫,如
torch
等:
pip install torch
💻 使用示例
基礎用法
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('davidberenstein1957/image-preferences-flux-dev-lora', weight_name='pytorch_lora_weights.safetensors')
image = pipeline('["Cinematic", "Photographic", "Anime", "Manga", "Digital art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model", “Painting”, “Animation” “Illustration”]').images[0]
高級用法
對於更多細節,包括LoRA的加權、合併和融合等操作,請查看diffusers中加載LoRA的文檔。
📚 詳細文檔
模型描述
這些是davidberenstein1957/image-preferences-flux-schnell-lora
的DreamBooth LoRA權重,適用於black-forest-labs/FLUX.1-schnell
。權重使用DreamBooth和Flux diffusers trainer進行訓練。文本編碼器的LoRA未啟用。
觸發詞
你應該使用["Cinematic", "Photographic", "Anime", "Manga", "Digital art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model", “Painting”, “Animation” “Illustration”]
來觸發圖像生成。
下載模型
在“Files & versions”標籤中下載*.safetensors LoRA。
預期用途和限制
如何使用
限制和偏差
[TODO: provide examples of latent issues and potential remediations]
訓練細節
[TODO: describe the data used to train the model]
📄 許可證
請遵守此處描述的許可條款。
🔍 示例展示
輸入文本 |
輸出圖像 |
a bustling manga street, devoid of vehicles, detailed with vibrant colors and dynamic line work, characters in the background adding life and movement, under a soft golden hour light, with rich textures and a lively atmosphere, high resolution, sharp focus |
點擊查看 |
a boat in the canals of Venice, painted in gouache with soft, flowing brushstrokes and vibrant, translucent colors, capturing the serene reflection on the water under a misty ambiance, with rich textures and a dynamic perspective |
點擊查看 |
A vibrant orange poppy flower, enclosed in an ornate golden frame, against a black backdrop, rendered in anime style with bold outlines, exaggerated details, and a dramatic chiaroscuro lighting. |
點擊查看 |
Armored armadillo, detailed anatomy, precise shading, labeled diagram, cross-section, high resolution. |
點擊查看 |
A photographic photo of a hedgehog in a forest 4k |
點擊查看 |
Grainy shot of a robot cooking in the kitchen, with soft shadows and nostalgic film texture. |
點擊查看 |
🏷️ 標籤
- text-to-image
- diffusers-training
- diffusers
- lora
- flux
- flux-diffusers
- template:sd-lora
📊 數據集
- data-is-better-together/image-preferences-results-binarized
- data-is-better-together/open-image-preferences-v1-results