🚀 flux-lora-eric-cat
本项目是一个文本到图像的LoRA模型,用于生成特定风格的猫咪图像。它是为了纪念作者的爱猫Eric而创建,使用特定触发词可生成相关风格的图像,且支持多种工具和库使用。
🚀 快速开始
触发词使用
你应该使用 eric cat 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('ginipick/flux-lora-eric-cat', weight_name='flux-lora-eric-cat')
image = pipeline('eric cat style, cute cat').images[0]
image.save("my_image.png")
更多细节,包括LoRA的加权、合并和融合,请查看 diffusers 中加载 LoRA 的文档。
✨ 主要特性
- 纪念意义:该模型是为纪念作者相伴超十年的爱猫Eric而创建,承载着深厚情感。
- 特定风格生成:使用
eric cat style
触发词,可生成特定风格的猫咪图像。
- 多工具支持:支持ComfyUI、AUTOMATIC1111、SD.Next、Invoke AI等多种工具。
- diffusers库适配:可与 🧨 diffusers 库结合使用,方便进行图像生成。
📦 安装指南
下载模型
模型权重以Safetensors格式提供,可在 Files & versions 标签页 进行下载。
依赖安装
使用 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('ginipick/flux-lora-eric-cat', weight_name='flux-lora-eric-cat')
image = pipeline('eric cat style, cute cat').images[0]
image.save("my_image.png")
高级用法
可参考 diffusers 中加载 LoRA 的文档 进行LoRA的加权、合并和融合等操作。
📚 详细文档
触发词
使用 eric cat 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('ginipick/flux-lora-eric-cat', weight_name='flux-lora-eric-cat')
image = pipeline('eric cat style, cute cat').images[0]
image.save("my_image.png")
更多细节,包括LoRA的加权、合并和融合,请查看 diffusers 中加载 LoRA 的文档。
📄 许可证
本模型使用 flux-1-dev-non-commercial-license
许可证。
纪念说明
"In loving memory of Eric, who became a star in the sky last summer. For over a decade, he was more than just a pet—he was family. To honor my beloved cat, Eric, I created this LoRA model as a tribute to his cherished presence in my life."
示例展示
相关链接
https://huggingface.co/spaces/openfree/mixgen3