关于 age-transformation
age-transformation 使用 each::sense 将照片中的人物转换为不同年龄外观,适用于影像创作、影视制作和可视化项目。它支持年龄增长、逆龄及连续年龄版本生成,并可通过多轮对话细化结果。
主要功能
- 01年龄增长与逆龄转换
- 02生成儿童、青少年及老年外观
- 03支持轻微或大幅年龄变化
- 04连续生成多个年龄版本
- 05通过多轮对话调整结果
适用场景
- 01制作影视作品中的演员逆龄画面
- 02探索儿童或婴儿成年后的外观
- 03为失踪人员可视化年龄变化
- 04制作家庭或娱乐用途的年龄效果
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ eachlabs/ skills --skill age-transformation安装后在 Claude Code 中输入/age-transformation确认已加载。
附带文件references/SSE-EVENTS.md
详细介绍
年龄转换
使用 each::sense 转换人脸的不同年龄。这项技能可实现逼真的年龄增长(变老)和年龄回溯(变年轻)效果,适用于娱乐、影视制作、法证可视化和创意项目。
功能
- 年龄增长:让人物看起来更年长(10、20、40+ 年)
- 年龄回溯:让人物看起来更年轻
- 婴儿变成人:预测婴儿或儿童成年后的样貌
- 青少年版本:转换为青少年外貌
- 老年人版本:创建逼真的老年版本
- 中年版本:转换为中年外貌
- 轻微变老:小幅改变年龄(5-10 年)
- 显著变老:大幅改变年龄(30-50 年)
- 影视去老化:适用于影视制作的专业去老化效果
- 年龄时间线:按顺序生成多个年龄阶段的版本
快速开始
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Age this person to look 70 years old while maintaining their recognizable features"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"mode": "max"
}'
使用场景示例
1. 年龄增长(变老)
将年轻人转换为明显年长的样貌,并呈现自然的衰老特征。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Age this person by 30 years. Add realistic aging features like wrinkles, slight sagging, gray hair, and age spots while keeping their identity clearly recognizable."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/young-adult.jpg"],
"mode": "max"
}'
2. 年龄回溯(变年轻)
让年长的人物看起来更年轻,拥有更光滑的皮肤和更年轻的特征。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "De-age this person by 25 years. Make them look younger with smoother skin, fuller hair, tighter facial features, but keep their identity intact. Natural and realistic result."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/middle-aged-person.jpg"],
"mode": "max"
}'
3. 预测婴儿成年后的样貌
预测婴儿或幼童成年后的样貌。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform this baby photo to show how they might look as a 30-year-old adult. Maintain key facial features like eye shape, nose structure, and overall face shape. Make it realistic and believable."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/baby-photo.jpg"],
"mode": "max"
}'
4. 青少年版本
将儿童或成年人转换为青少年时期的样貌。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform this person to look like a 16-year-old teenager. Adjust facial features to teenage proportions while preserving their recognizable identity. Natural skin, youthful energy."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/adult-portrait.jpg"],
"mode": "max"
}'
5. 老年人版本
创建逼真的老年版本,并呈现自然的衰老特征。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Age this person to 80 years old. Add deep wrinkles, age spots, white/gray hair, thinner skin, and natural elderly features. The result should look like a dignified senior while still being recognizable as the same person."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/young-person.jpg"],
"mode": "max"
}'
6. 中年版本
转换为逼真的中年样貌。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform this young adult to appear 45-50 years old. Add subtle wrinkles, slight gray at the temples, mature skin texture, and natural middle-age characteristics while maintaining their identity."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/25-year-old.jpg"],
"mode": "max"
}'
7. 轻微变老(10 年)
实现自然、轻微的衰老效果,呈现 10 年后的样貌。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Age this person by exactly 10 years. Apply subtle, realistic aging: fine lines around eyes and mouth, slightly less elastic skin, minimal gray hair starting to show. Keep changes believable and natural."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/current-photo.jpg"],
"mode": "max"
}'
8. 显著变老(40 年)
实现显著的衰老效果,呈现 40 年后的样貌。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Age this 25-year-old by 40 years to look 65. Apply dramatic but realistic aging: significant wrinkles, sagging skin, gray/white hair, age spots, thinning hair, jowls. Result should be photorealistic and the person should still be recognizable."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/young-adult-25.jpg"],
"mode": "max"
}'
9. 视频/影视去老化
适用于影视制作的专业去老化效果。
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "De-age this actor to look 25 years younger for a film flashback scene. Remove wrinkles, tighten facial features, restore hair color and volume, create smooth youthful skin. Result must be cinematic quality, photorealistic, and maintain perfect identity consistency."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/actor-current.jpg"],
"mode": "max"
}'
10. 年龄增长时间线(多个年龄阶段)
使用会话连续性生成多个年龄阶段的版本。
# First request - Age to 40
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "This is a 20-year-old. Create an age progression showing them at 40 years old. Maintain identity throughout."}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/person-age-20.jpg"],
"session_id": "age-timeline-project-001",
"mode": "max"
}'
# Second request - Age to 60 (same session)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Now show the same person at 60 years old. Continue the aging progression naturally from the 40-year-old version."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "age-timeline-project-001",
"mode": "max"
}'
# Third request - Age to 80 (same session)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Finally, show them at 80 years old. Complete the age timeline with realistic elderly features."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "age-timeline-project-001",
"mode": "max"
}'
最佳实践
实现逼真效果
- 高质量源照片:使用清晰、光线充足的正面肖像
- 指定准确年龄:「变到 65 岁」比「变老」更好
- 说明要保留身份特征:始终要求保留可辨认的特征
- 描述衰老特征:用具体细节引导转换
输入照片指南
- 分辨率:分辨率越高,效果越好
- 光线:均匀、中性的光线效果最佳
- 角度:正面肖像最理想
- 表情:中性表情转换效果最自然
- 遮挡物:避免太阳镜、浓妆或面部遮挡物
提示词技巧
请求年龄转换时,请包含:
- 当前年龄(如果知道):「这位 30 岁的人……」
- 目标年龄:「……变成 70 岁」
- 衰老特征:「添加皱纹、灰白头发、老年斑……」
- 身份说明:「……同时保留其可辨认的特征」
- 质量要求:「写实效果」
提示词结构示例
"Transform this [current age]-year-old to look [target age] years old.
Add [specific aging/de-aging features].
Maintain their identity and recognizable features.
[Additional requirements like lighting, style, etc.]"
模式选择
| 模式 | 最适合 | 速度 | 质量 |
|---|---|---|---|
max | 最终输出、专业工作、影视制作 | 较慢 | 最高 |
eco | 快速预览、测试、迭代 | 较快 | 良好 |
建议:使用 eco 模式测试并优化提示词,然后切换到 max 以获得最终的高质量输出。
多轮优化
使用 session_id 逐步优化年龄转换:
# Initial transformation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Age this person to 70 years old"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/portrait.jpg"],
"session_id": "age-refinement-001"
}'
# Refine the result
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Add more prominent wrinkles and make the hair completely white"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "age-refinement-001"
}'
# Further adjustment
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Keep the aging but make the expression warmer, add smile lines"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "age-refinement-001"
}'
常见用例
| 用例 | 推荐方法 |
|---|---|
| 娱乐/趣味 | 使用 eco 模式快速呈现变老或变年轻的效果 |
| 电影/视频特效 | 使用 max 模式和详细提示词让演员变年轻 |
| 寻找失踪人员 | 从童年时期开始推演年龄,同时保留关键特征 |
| 家庭项目 | “我 80 岁时会是什么样子?”这类查询 |
| 法证可视化 | 以身份特征为重点进行专业年龄推演 |
| 前后对比概念 | 为护肤/健康可视化呈现细微的衰老效果 |
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
Failed to create prediction: HTTP 422 | 余额不足 | 在 eachlabs.ai 充值 |
| 身份特征保留效果不佳 | 提示词含糊 | 明确说明要保留哪些特征 |
| 衰老效果不真实 | 缺少衰老细节 | 描述具体的衰老特征 |
| 超时 | 生成过程复杂 | 将客户端超时时间设为至少 10 分钟 |
相关技能
each-sense- 核心 API 文档face-swap- 换脸功能image-edit- 通用图像编辑portrait-generation- 从头创建肖像
评论
支持 Markdown