🚀 巴拉特撲克卡片模型
本項目基於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 |