一键导入
image-edit
对图像进行编辑操作。支持四种功能:变宽高比(aspect)、擦除对象(erase)、去除背景(rmbg)、通用编辑(edit)。基于 tl-image 的 quickedit 模型实现快速图像编辑。当用户需要修改图片宽高比、移除图片中的对象、去除背景或进行自定义编辑时使用此技能。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
对图像进行编辑操作。支持四种功能:变宽高比(aspect)、擦除对象(erase)、去除背景(rmbg)、通用编辑(edit)。基于 tl-image 的 quickedit 模型实现快速图像编辑。当用户需要修改图片宽高比、移除图片中的对象、去除背景或进行自定义编辑时使用此技能。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate videos using Aliyun Bailian's HappyHorse AI video generation models via DashScope API. Supports text-to-video (T2V), image-to-video (I2V with first frame), and reference-to-video (R2V with multiple reference images). Supports batch generation with concurrent task execution. Requires DASHSCOPE_API_KEY. Video generation typically takes 1-5 minutes. MUST use this skill whenever generating videos with Aliyun/HappyHorse/DashScope, including batch video generation, animating images, or creating videos from text descriptions.
Generate and edit images using TensorsLab's AI models. Supports text-to-image, image-to-image generation, plus advanced editing: avatar generation, watermark removal, object erasure, face replacement, and general image editing. Features automatic prompt enhancement, progress tracking, and local file saving. Requires browser-based authorization before first use.
Generate videos using TensorsLab's AI video generation models. Supports text-to-video and image-to-video generation with automatic prompt enhancement, progress tracking, and local file saving. Use for generating videos from text descriptions, animating static images, creating cinematic content, and various aspect ratios. Requires browser-based authorization before first use. Video generation takes several minutes.
| name | image-edit |
| description | 对图像进行编辑操作。支持四种功能:变宽高比(aspect)、擦除对象(erase)、去除背景(rmbg)、通用编辑(edit)。基于 tl-image 的 quickedit 模型实现快速图像编辑。当用户需要修改图片宽高比、移除图片中的对象、去除背景或进行自定义编辑时使用此技能。 |
基于 tl-image 的 quickedit 模型实现快速图像编辑操作。
本技能使用 tl-image 技能的 tensorslab_image.py 脚本,配合 --model quickedit 参数。脚本位于 tl-image 技能的 scripts/ 目录下,必须使用绝对路径执行。根据 tl-image 技能的安装位置确定绝对路径。
例如,如果 tl-image 的 SKILL.md 位于 /path/to/skills/tl-image/SKILL.md,则:
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "<编辑指令>" --source <image_path> --model quickedit
使用前需确保已通过 TensorsLab 授权。运行:
python "<tl-image绝对路径>/scripts/tensorslab_auth.py"
如果之前已授权过(~/.tensorslab/.env 中有 key),则无需重复授权。
所有传给脚本的提示词(prompt)必须用引号包裹,防止 shell 解析问题:
# 正确
python "scripts/tensorslab_image.py" "remove the watermark" --source photo.jpg --model quickedit
python "scripts/tensorslab_image.py" "把天空改成星空" --source photo.jpg --model quickedit
# 错误 - 没有引号
python "scripts/tensorslab_image.py" remove the watermark --source photo.jpg --model quickedit
改变图片宽高比,保持内容不变。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "保持画面内容不变,调整构图适应新的宽高比" --source input.jpg --model quickedit --resolution 16:9
支持的宽高比:1:1、4:3、3:4、16:9、9:16、3:2、2:3、21:9、9:21
用户请求映射:
1:116:99:164:3从图片中移除指定对象。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the watermark from the image" --source photo.jpg --model quickedit
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the person in the background" --source photo.jpg --model quickedit
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the logo" --source photo.jpg --model quickedit
擦除提示词应明确描述要移除的对象,并用英文效果最佳。
移除图片背景,只保留主体。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "remove the background, keep only the main subject" --source portrait.jpg --model quickedit
使用自定义指令编辑图片。
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "change the sky to a starry night" --source input.jpg --model quickedit
python "<tl-image绝对路径>/scripts/tensorslab_image.py" "add snow effect" --source input.jpg --model quickedit --resolution 16:9
可选参数:
--resolution - 输出宽高比(如 16:9、1:1)--output-dir - 自定义输出目录编辑指令使用英文效果最佳,保留用户的创意意图。
所有命令支持以下可选参数:
--output-dir 或 -o - 输出目录(默认: ./tensorslab_output/)--resolution - 输出宽高比(如 16:9、1:1)生成文件名使用格式: yyyy-mm-dd-hh-mm-ss-name.jpg
格式: {timestamp}-{descriptive-name}.jpg
yyyy-mm-dd-hh-mm-ss(24小时制)x9k2、a7b3)示例:
2025-01-19-20-30-05-remove-watermark.jpg2025-01-19-20-31-12-aspect-9-16.jpg2025-01-19-20-32-33-remove-bg.jpg2025-01-19-20-33-48-snow-effect.jpg./tensorslab_output/ 目录