🚀 Pixel Art Medium 128 v0.1
这是一款基于SD3 Medium的模型,能够输出128x128像素的网格对齐像素艺术风格图像,为图像生成带来独特的像素风体验。
🚀 快速开始
本模型可以通过以下方式快速体验:
- 在提示词末尾始终添加 “pixel art style” 来触发图像生成。
- 使用 “realistic, 3d render, photo” 作为负提示词,以获得更好的效果。
- 在提示词中添加 “flat, simple colors” 以实现更好的样式。
示例提示词:
portrait of a cute happy corgi wearing a party hat, pastel color background, pixel art style
负提示词:
realistic, 3d render, photo
✨ 主要特性
- 特定风格输出:输出128x128像素的网格对齐像素艺术风格图像。
- 提示词引导:通过特定的提示词和负提示词可以引导生成更好的图像。
📦 安装指南
文档未提及安装步骤,暂不展示。
💻 使用示例
基础用法
在Diffusers中使用该模型,示例代码如下(假设已安装相关依赖):
from diffusers import StableDiffusionPipeline
import torch
model_id = "nerijs/pixel-art-medium-128-v0.1"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "portrait of a cute happy corgi wearing a party hat, pastel color background, pixel art style"
negative_prompt = "realistic, 3d render, photo"
image = pipe(prompt=prompt, negative_prompt=negative_prompt).images[0]
image.save("output.png")
高级用法
在上述基础上,添加 “flat, simple colors” 到提示词中,以实现更好的样式:
from diffusers import StableDiffusionPipeline
import torch
model_id = "nerijs/pixel-art-medium-128-v0.1"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "portrait of a cute happy corgi wearing a party hat, pastel color background, pixel art style, flat, simple colors"
negative_prompt = "realistic, 3d render, photo"
image = pipe(prompt=prompt, negative_prompt=negative_prompt).images[0]
image.save("output_advanced.png")
📚 详细文档
触发词
你应该使用 pixel art style
来触发图像生成。
下载模型
该模型的权重以Safetensors格式提供。
点击下载,在 “Files & versions” 标签中获取。
注意事项
- 仅在Diffusers上进行了测试,Comfy的支持情况需要进一步测试。
- 示例图像是使用默认的Diffusers管道,强度为1.0,默认采样器,28步和CFG为5.0生成的。
🔧 技术细节
文档未提供具体的技术实现细节,暂不展示。
📄 许可证
本模型使用的许可证为 cc-by-nc-4.0。