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

ccsr

ccsr

【效率与协作】CCSR Upscaler. Upscale and enhance images using the CCSR model with advanced tiling and color correction. Triggers: ccsr upscaler, image upscale, super resolution, enhance image, upscale image, image enhancement, ccsr

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

技能说明

GitHub

name: ccsr description: "CCSR Upscaler. Upscale and enhance images using the CCSR model with advanced tiling and color correction. Triggers: ccsr upscaler, image upscale, super resolution, enhance image, upscale image, image enhancement, ccsr" allowed-tools: Bash(curl *), WebFetch

CCSR Upscaler

Upscale and enhance images using the CCSR (Content Consistent Super-Resolution) model. Supports configurable scale factors, color correction methods, tile-based processing for large images, and fine-grained control over the diffusion process.

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": "ccsr",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/low-res-photo.jpg",
      "scale": 2,
      "steps": 50
    }
  }'

Parameters

ParameterTypeDefaultDescription
color_fix_typestringadainColor correction method. Options: none, wavelet, adain
image_urlstring-URL of the image to upscale
scalenumber2Upscale factor
seedinteger-Random seed for reproducible results
stepsinteger50Number of inference steps. Higher values produce better quality but take longer
t_maxnumber0.6667Maximum timestep for the diffusion process
t_minnumber0.3333Minimum timestep for the diffusion process
tile_diffusionstringnoneTile diffusion mode. Options: none, mix, gaussian
tile_diffusion_sizeinteger1024Size of tiles for tile diffusion
tile_diffusion_strideinteger-Stride for tile diffusion
tile_vaebooleanfalseEnable tile-based VAE processing for large images
tile_vae_decoder_sizeinteger226Size of tiles for VAE decoder
tile_vae_encoder_sizeinteger1024Size of tiles for VAE encoder

Examples

Basic 2x upscale:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "ccsr",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/small-portrait.jpg",
      "scale": 2,
      "steps": 50,
      "color_fix_type": "adain"
    }
  }'

High-quality upscale with tiling for large images:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "ccsr",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/landscape.jpg",
      "scale": 4,
      "steps": 60,
      "tile_diffusion": "gaussian",
      "tile_diffusion_size": 1024,
      "tile_vae": true,
      "color_fix_type": "wavelet"
    }
  }'

Related Models

Documentation

我的收藏