🚀 巴拉特扑克卡片模型
本项目基于150张(共160张)热门游戏“巴拉特”中的扑克卡片训练出了一个模型,可用于生成相关的像素风图像,为图像创作带来新的可能。
🚀 快速开始
触发词使用
你应当使用 balatrocard
来触发图像生成。建议在提示词开头使用 “a pixel art of a.”。同时,我在Photoshop中创建了一个带有卡片边框和 “JOKER” 字样的模板,使生成的图像更加融合。
模型下载与使用
本模型的权重以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-schnell', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('Wakkamaruh/balatro-poker-cards', weight_name='balatro-poker-cards')
image = pipeline('a pixel art card of a samurai balatrocard').images[0]
image.save("my_image.png")
更多详细信息,包括LoRA的加权、合并和融合等内容,请查看 diffusers中加载LoRA的文档。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('Wakkamaruh/balatro-poker-cards', weight_name='balatro-poker-cards')
image = pipeline('a pixel art card of a samurai balatrocard').images[0]
image.save("my_image.png")
高级用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('Wakkamaruh/balatro-poker-cards', weight_name='balatro-poker-cards')
image = pipeline('a pixel art card of a samurai balatrocard, high resolution, detailed').images[0]
image.save("my_image_advanced.png")
📄 许可证
本项目采用Apache 2.0许可证。
属性 |
详情 |
基础模型 |
black-forest-labs/FLUX.1-schnell |
许可证 |
apache-2.0 |
标签 |
autotrain、spacerunner、text-to-image、flux、lora、diffusers、template:sd-lora |