🚀 水晶 [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。
📋 模型信息
🌟 示例展示
以下是一些使用该模型生成的图像示例:
💡 支持与反馈