mcpField
P
p-image

p-image

github.com/whytryharder其他0212 次安装15 周前更新
代码仓库

关于 p-image

p-image 是一项通过 inference.sh 命令行使用 Pruna 模型生成和编辑图像的技能,涵盖文生图、LoRA 风格预设,以及使用多张参考图像进行编辑。

主要功能

  1. 01根据文本生成图像
  2. 02预设 LoRA 风格
  3. 03使用参考图像编辑
  4. 04合成多张图像
  5. 05支持多种宽高比

适用场景

  1. 01按指定宽高比制作图像
  2. 02应用预设视觉风格
  3. 03根据参考图像编辑作品
  4. 04将多张图像合成为拼贴

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/whytryharder/superpowers --skill p-image

安装后在 Claude Code 中输入/p-image确认已加载。

详细介绍

安装 belt CLI 技能: npx skills add belt-sh/cli

Pruna P-Image 图像生成

通过 inference.sh CLI,使用 Pruna 优化的 P-Image 模型生成图像。

P-Image 图像生成

快速开始

需要 inference.sh CLI(belt)。安装说明

belt login

belt app run pruna/p-image --input '{"prompt": "a futuristic cityscape at sunset"}'

P-Image 模型

Pruna 可在不牺牲质量的前提下优化 AI 模型的速度。

模型应用 ID适用场景
P-Imagepruna/p-image快速文生图,支持多种宽高比
P-Image-LoRApruna/p-image-lora使用预设 LoRA 的自定义风格
P-Image-Editpruna/p-image-edit支持多张图像的图像编辑
P-Image-Edit-LoRApruna/p-image-edit-lora风格化图像编辑

示例

文生图
belt app run pruna/p-image --input '{
  "prompt": "professional product photo of sneakers, studio lighting",
  "aspect_ratio": "1:1"
}'
使用 LoRA 预设

P-Image-LoRA 内置了多种风格预设:

belt app run pruna/p-image-lora --input '{
  "prompt": "portrait of a woman in golden hour light",
  "lora_preset": "photos-realism"
}'

可用预设:photos-realism、pixel-art、japanese-modern-look、cinematic-movie-style、graffiti-splash、neon-punk、anime-2-5d、ethereal-portrait、retro-90s-style、ink-sketchbook、paper-cut

图像编辑
belt app run pruna/p-image-edit --input '{
  "prompt": "change the background to a beach",
  "images": ["https://your-image.jpg"]
}'
多图合成
belt app run pruna/p-image-edit --input '{
  "prompt": "combine these images into a collage",
  "images": ["https://img1.jpg", "https://img2.jpg", "https://img3.jpg"]
}'
自定义宽高比
belt app run pruna/p-image --input '{
  "prompt": "landscape mountain scene",
  "aspect_ratio": "16:9"
}'

支持的宽高比:1:1、16:9、9:16、4:3、3:4、3:2、2:3,或通过宽度/高度设置 custom

其他 Pruna 模型

Pruna 提供热门模型的优化版本:

# FLUX Dev (optimized)
belt app run pruna/flux-dev --input '{"prompt": "..."}'

# FLUX Klein 4B (extremely fast, $0.0001/image)
belt app run pruna/flux-klein-4b --input '{"prompt": "..."}'

# Qwen Image
belt app run pruna/qwen-image --input '{"prompt": "..."}'

# Z-Image Turbo (ultra-fast)
belt app run pruna/z-image-turbo --input '{"prompt": "..."}'

# WAN Image Small (batch generation)
belt app run pruna/wan-image-small --input '{"prompt": "..."}'

浏览所有 Pruna 应用

belt app list --namespace pruna

相关技能

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# All image generation models
npx skills add inference-sh/skills@ai-image-generation

# Pruna video generation
npx skills add inference-sh/skills@p-video

# FLUX models
npx skills add inference-sh/skills@flux-image

浏览所有应用:belt app list

文档

评论

支持 Markdown