🚀 水晶 [FLUX+SDXL+PONY+1.5]
這是一個文本到圖像的模型,基於Stable Diffusion和LoRA技術,能生成具有水晶風格的逼真圖像,適用於各種創意場景。
🚀 快速開始
觸發詞
你應該使用 crystalz
來觸發圖像生成。對於不同的基礎模型,有不同的觸發詞:
- 觸發詞(PONY):
ral-crystalz
- 觸發詞(FLUX+SDXL+1.5):
crystalz
下載模型
此模型的權重以Safetensors格式提供。
點擊下載,在“Files & versions”標籤中獲取。
使用🧨 diffusers庫
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/crystals-flux-sdxl-pony-1-5', weight_name='ral-crystalz_flux.safetensors')
image = pipeline('a crystalz fantasy forest, mythical forest, purple orange and black ').images[0]
更多詳細信息,包括LoRA的加權、合併和融合,請查看 diffusers中加載LoRA的文檔。
✨ 主要特性
- 文本到圖像:通過輸入文本描述,生成對應的圖像。
- 風格獨特:具有水晶風格,能為圖像增添奇幻和華麗的元素。
- 多種應用場景:可用於生成人物、動物、食物、風景等各種類型的圖像。
📦 安裝指南
使用此模型前,需要安裝 diffusers
庫。可以使用以下命令進行安裝:
pip install diffusers
💻 使用示例
基礎用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/crystals-flux-sdxl-pony-1-5', weight_name='ral-crystalz_flux.safetensors')
image = pipeline('a crystalz fantasy forest, mythical forest, purple orange and black ').images[0]
高級用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/crystals-flux-sdxl-pony-1-5', weight_name='ral-crystalz_flux.safetensors')
pipeline.load_lora_weights('another_lora_model', weight_name='another_lora.safetensors')
image = pipeline('a crystalz fantasy forest, mythical forest, purple orange and black ').images[0]
📚 詳細文檔
更多關於加載LoRAs的詳細信息,包括加權、合併和融合,請查看 diffusers中加載LoRAs的文檔。
📄 許可證
本模型使用的許可證為 bespoke-lora-trained-license。
📋 模型信息
🌟 示例展示
以下是一些使用該模型生成的圖像示例:
💡 支持與反饋