🚀 PS1风格Flux
PS1风格Flux是一款文本到图像的模型,基于Stable Diffusion,能生成具有怀旧风格的PS1游戏截图效果的图像,为图像创作带来独特体验。
🚀 快速开始
本模型在提示词中包含 ps1 game screenshot
时效果最佳。使用 ps1
触发图像生成,你可以按照以下代码示例,使用 diffusers
库来生成图像。
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('veryVANYA/ps1-style-flux', weight_name='ps1_style_flux_v1.safetensors')
image = pipeline('`ps1`').images[0]
更多细节,包括LoRA的加权、合并和融合,请查看 diffusers中加载LoRA的文档。
✨ 主要特性
- 风格独特:能够生成具有90年代末/2000年代初PS1/N64游戏机图形风格的图像,带来怀旧的游戏截图效果。
- 特定触发:使用
ps1
作为触发词即可生成相关风格图像。
📦 安装指南
本模型的权重以Safetensors格式提供,你可以在 Files & versions 标签中下载。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('veryVANYA/ps1-style-flux', weight_name='ps1_style_flux_v1.safetensors')
image = pipeline('`ps1`').images[0]
高级用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('veryVANYA/ps1-style-flux', weight_name='ps1_style_flux_v1.safetensors')
prompt = 'ps1 game screenshot, the flash in a wheelchair, winning the boston marathon, hot streaks behind him as his wheelchair drives across the finish line, there is a banner overhead at the finish line with text ps1 flux by veryvanya, the flashs wheelchair is sleek and high-tech, with glowing blue accents and a bold, red stripe running along the side, his iconic red and gold costume is torn and worn, but still vibrant, with a few loose threads and scorch marks, the finish line is crowded with cheering spectators, the sky above is a bright, sunny blue, with a few puffy white clouds, the flashs face is set in a determined expression, his eyes fixed intently on the finish line, his arms are muscular and toned, with a few scars and bruises visible, the wheelchairs wheels are blurred, conveying a sense of speed and motion, the hot streaks behind the flash are long and curved, like a comets tail, and are colored in shades of orange, yellow, and red, the banner overhead is made of a shiny, metallic material, and the text ps1 flux by veryvanya is written in bold, graffiti-style letters'
image = pipeline(prompt).images[0]
📚 详细文档
模型描述
本模型在提示词中包含 ps1 game screenshot
时效果最佳,具有90年代末/2000年代初PS1/N64游戏机图形风格。模型训练了5000步,使用了15张由GPT4O标注和调整的PS1/N64游戏截图,训练工具可参考 https://github.com/ostris/ai-toolkit/tree/main。
触发词
使用 ps1
来触发图像生成。
📄 许可证
本模型使用 bespoke-lora-trained-license 许可证。
信息表格
属性 |
详情 |
模型类型 |
文本到图像模型,基于Stable Diffusion的LoRA模型 |
训练数据 |
15张由GPT4O标注和调整的PS1/N64游戏截图 |
基础模型 |
black-forest-labs/FLUX.1-dev |