background-removal
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBackground Removal
背景移除
Remove backgrounds from images via inference.sh CLI.
通过inference.sh CLI移除图片背景。
Quick Start
快速开始
bash
curl -fsSL https://cli.inference.sh | sh && infsh login
infsh app run infsh/birefnet --input '{"image_url": "https://your-photo.jpg"}'bash
curl -fsSL https://cli.inference.sh | sh && infsh login
infsh app run infsh/birefnet --input '{"image_url": "https://your-photo.jpg"}'How To
使用方法
Use Reve for image editing including background changes:
bash
infsh app run falai/reve --input '{
"prompt": "remove the background, make it transparent",
"image_url": "https://portrait.jpg"
}'Or change background directly:
bash
infsh app run falai/reve --input '{
"prompt": "change the background to a beach",
"image_url": "https://product-photo.jpg"
}'使用Reve进行图片编辑,包括背景修改:
bash
infsh app run falai/reve --input '{
"prompt": "remove the background, make it transparent",
"image_url": "https://portrait.jpg"
}'或者直接更换背景:
bash
infsh app run falai/reve --input '{
"prompt": "change the background to a beach",
"image_url": "https://product-photo.jpg"
}'Workflow: Generate and Edit
工作流:生成与编辑
bash
undefinedbash
undefined1. Generate an image
1. 生成图片
infsh app run falai/flux-dev-lora --input '{"prompt": "a cute robot mascot"}' > robot.json
infsh app run falai/flux-dev-lora --input '{"prompt": "a cute robot mascot"}' > robot.json
2. Edit with Reve
2. 使用Reve编辑
infsh app run falai/reve --input '{
"prompt": "remove background, transparent",
"image_url": "<url-from-step-1>"
}'
undefinedinfsh app run falai/reve --input '{
"prompt": "remove background, transparent",
"image_url": "<url-from-step-1>"
}'
undefinedUse Cases
适用场景
- E-commerce: Clean product photos
- Portraits: Professional headshots
- Marketing: Assets for design
- Social Media: Profile pictures
- Design: Elements for compositions
- 电商:制作干净的商品照片
- 人像:专业头像照
- 营销:设计用素材
- 社交媒体:个人资料图片
- 设计:构图元素
Output
输出
Returns a PNG with transparent background.
返回带有透明背景的PNG图片。
Related Skills
相关技能
bash
undefinedbash
undefinedFull platform skill (all 150+ apps)
全平台技能(包含150+应用)
npx skills add inference-sh/skills@inference-sh
npx skills add inference-sh/skills@inference-sh
Image generation
图片生成
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@ai-image-generation
FLUX models (including inpainting)
FLUX模型(包含图像修复)
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@flux-image
Upscaling
图片放大
npx skills add inference-sh/skills@image-upscaling
Browse all image apps: `infsh app list --category image`npx skills add inference-sh/skills@image-upscaling
浏览所有图片类应用:`infsh app list --category image`Documentation
文档
- Running Apps - How to run apps via CLI
- Image Generation Example - Complete image workflow guide
- Apps Overview - Understanding the app ecosystem