🚀 test-bag4
這是一個使用 AI Toolkit by Ostris 訓練的模型,可用於文本到圖像的生成。
🚀 快速開始
觸發詞
你應該使用 handbag
來觸發圖像生成。
下載模型並在不同平臺使用
此模型的權重以 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('seawolf2357/test-bag4', weight_name='test-bag4.safetensors')
image = pipeline('a woman wearing a white shirt and black leggings, standing on a set of stairs with a black Chanel bag in her hand. The background of the image is a building. [trigger]').images[0]
image.save("my_image.png")
更多詳細信息,包括 LoRAs 的加權、合併和融合,請查看 diffusers 中加載 LoRAs 的文檔。
✨ 主要特性
- 文本到圖像生成:通過輸入文本描述,生成相應的圖像。
- 多平臺支持:可以在 ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI 等平臺使用。
- LoRA 支持:使用 LoRA 技術,可靈活加載和調整模型。
📦 安裝指南
模型權重以 Safetensors 格式提供,你可以在 Files & versions 標籤頁 下載。
💻 使用示例
基礎用法
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('seawolf2357/test-bag4', weight_name='test-bag4.safetensors')
image = pipeline('a woman wearing a white shirt and black leggings, standing on a set of stairs with a black Chanel bag in her hand. The background of the image is a building. [trigger]').images[0]
image.save("my_image.png")
📚 詳細文檔
更多詳細信息,包括 LoRAs 的加權、合併和融合,請查看 diffusers 中加載 LoRAs 的文檔。
📄 許可證
本模型使用 flux-1-dev-non-commercial-license
許可證,詳情請見 許可證鏈接。
📋 模型信息
屬性 |
詳情 |
基礎模型 |
black-forest-labs/FLUX.1-dev |
實例提示詞 |
handbag |
許可證 |
other |
許可證名稱 |
flux-1-dev-non-commercial-license |
許可證鏈接 |
https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |