界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

gfpgan

gfpgan

【效率与协作】GFPGAN | AI Face Restoration. Restore and enhance faces in images with multiple model versions. Triggers: gfpgan, face restoration, face enhance, photo restore, face repair

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: gfpgan description: "GFPGAN | AI Face Restoration. Restore and enhance faces in images with multiple model versions. Triggers: gfpgan, face restoration, face enhance, photo restore, face repair" allowed-tools: Bash(curl *), WebFetch

GFPGAN

Restore and enhance faces in images using GFPGAN. Supports multiple model versions including RestoreFormer for high-quality face restoration with configurable rescaling.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "gfpgan",
    "version": "0.0.1",
    "input": {
      "img": "https://example.com/old-photo-with-faces.jpg",
      "version": "v1.4",
      "scale": 2
    }
  }'

Parameters

ParameterTypeDefaultDescription
imgstring-Input image
scalenumber2Rescaling factor
versionstringv1.4GFPGAN model version. enum: v1.2, v1.3, v1.4, RestoreFormer

Examples

Restore old family photo:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "gfpgan",
    "version": "0.0.1",
    "input": {
      "img": "https://example.com/vintage-family-photo.jpg",
      "version": "v1.4",
      "scale": 4
    }
  }'

RestoreFormer for heavy restoration:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "gfpgan",
    "version": "0.0.1",
    "input": {
      "img": "https://example.com/damaged-portrait.jpg",
      "version": "RestoreFormer",
      "scale": 2
    }
  }'

Related Models

Documentation

我的收藏