🚀 notion-style-lora
notion-style-lora是一個基於AI的文本到圖像生成模型,藉助特定的觸發詞,可生成具有特定風格的圖像。該模型使用 AI Toolkit by Ostris 進行訓練,支持多種工具使用。
🚀 快速開始
觸發詞使用
你需要使用 not1on_style
來觸發圖像生成。
模型下載與使用
此模型的權重以Safetensors格式提供。你可以在 Files & versions 標籤頁 下載。下載後,可配合ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI等工具使用。
使用 🧨 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('shinealom/notion-style-lora', weight_name='notion-style-lora.safetensors')
image = pipeline('[trigger] with red hair, playing chess at the park, bomb going off in the background').images[0]
image.save("my_image.png")
更多詳細信息,包括LoRAs的加權、合併和融合,請查看 diffusers中加載LoRAs的文檔。
✨ 主要特性
- 多樣化場景生成:能夠根據不同的文本描述,生成如公園下棋、舞臺表演、後末日世界等多樣化場景的圖像。
- 多工具支持:支持ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI等多種圖像生成工具。
- 便捷的庫支持:可方便地與 🧨 diffusers 庫 集成使用。
📦 安裝指南
下載模型
在 Files & versions 標籤頁 下載以Safetensors格式提供的模型權重。
依賴安裝
如果你想使用 diffusers
庫,需要安裝相關依賴:
pip install diffusers 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('shinealom/notion-style-lora', weight_name='notion-style-lora.safetensors')
image = pipeline('[trigger] with red hair, playing chess at the park, bomb going off in the background').images[0]
image.save("my_image.png")
高級用法
你可以根據 diffusers中加載LoRAs的文檔 對LoRAs進行加權、合併和融合等操作,以實現更復雜的圖像生成效果。
📚 詳細文檔
模型信息
示例展示
以下是一些示例文本及其生成的圖像鏈接:
示例文本 |
圖像鏈接 |
[trigger] with red hair, playing chess at the park, bomb going off in the background |
samples/1730707433252__000002500_0.jpg |
[trigger] holding a coffee cup, in a beanie, sitting at a cafe |
samples/1730707443278__000002500_1.jpg |
[trigger] is a DJ at a night club, fish eye lens, smoke machine, lazer lights, holding a martini |
samples/1730707453302__000002500_2.jpg |
[trigger] showing off his cool new t shirt at the beach, a shark is jumping out of the water in the background |
samples/1730707463320__000002500_3.jpg |
[trigger] building a log cabin in the snow covered mountains |
samples/1730707473353__000002500_4.jpg |
[trigger] playing the guitar, on stage, singing a song, laser lights, punk rocker |
samples/1730707483390__000002500_5.jpg |
[trigger] with a beard, building a chair, in a wood shop |
samples/1730707493411__000002500_6.jpg |
photo of a [trigger], white background, medium shot, modeling clothing, studio lighting, white backdrop |
samples/1730707503424__000002500_7.jpg |
[trigger] holding a sign that says, ''this is a sign'' |
samples/1730707513447__000002500_8.jpg |
[trigger], in a post apocalyptic world, with a shotgun, in a leather jacket, in a desert, with a motorcycle |
samples/1730707523503__000002500_9.jpg |
📄 許可證
本模型使用 flux-1-dev-non-commercial-license 許可證,詳情請查看 許可證鏈接。