UpscaleX

io.github.The-Open-Source-Founder由 GitHub 账号 The-Open-Source-Founder 发布v0.1.2更新于 Nov 7, 2026

Production 16K image upscaler and model gateway via RealESRGAN and Vulkan.

已验证STDIO仅桌面文件与存储媒体与设计

概览

AI 生成的概览

本地 MCP 服务器兼命令行工具,借助 RealESRGAN 与 Vulkan GPU 加速将图片放大到 8K/16K,并提供印刷尺寸分析。

可以做什么
  • 读取图片元数据,并按 300、150、72 DPI 计算实际印刷尺寸
  • 评估印刷可行性,并结合硬件与图像内容推荐合适的模型
  • 用 4 倍深度学习模型放大到 16K,或以 4 倍推理加 Lanczos 超采样输出 8K
  • 按自定义尺寸或印刷长宽比缩放,并采用内存安全的分块处理
  • 列出可用模型,并按需下载额外的社区模型
适用场景
适合为大幅面印刷、海报、艺术复制品准备低分辨率素材,也适合让助手先判断源图是否足以印刷,再直接在对话客户端内完成放大。
运行要求
作为本地进程运行,可从 PyPI 安装(pip install upscalex)或从源码安装,通过 upscalex-mcp 或 upscalex serve 以 stdio 启动。有 Vulkan GPU 时会使用,否则回退到 CPU。首次使用时需联网下载引擎二进制文件和额外模型。
安装前请注意
首次使用会从网络下载并运行预编译的平台二进制文件和模型文件。放大操作会在磁盘上写出新的图片文件,大图处理可能耗时且占用大量内存;批量运行前请确认输出路径。

安装

在 SourceWeft 中

  1. 打开 控制台中的 UpscaleX,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[UpscaleX Banner]

UpscaleX MCP/CLI

[PyPI: Version] [License: MIT] [Python: 3.10+] [MCP: Enabled] [Acceleration: Vulkan GPU]

UpscaleX is a production-grade 8K and 16K image upscaler CLI and Model Context Protocol (MCP) server powered by RealESRGAN, Vulkan GPU hardware acceleration, and Lanczos supersampling.

Engineered for digital print workflows, large-format poster production, fine art reproductions, and autonomous AI coding agents in Claude Desktop, Antigravity, and Cursor.

Looking for quick setup? Read the Installation Guide for a copy-paste AI Agent setup prompt and manual instructions, or provide your AI coding assistant with the UpscaleX Agent Skill.


Table of Contents


Key Features

  • Dual-Mode Operation: Interactive command-line interface (upscalex) and standard Model Context Protocol server (upscalex-mcp).
  • 8K and 16K Presets:
    • 16K: Native 4x RealESRGAN deep-learning model upscale producing master files up to 400+ Megapixels.
    • 8K: 4x deep-learning inference followed by Lanczos-3 downsampling (Supersampling Anti-Aliasing / SSAA) for sharp edges and zero noise.
    • Custom Dimensions: Proportional scaling to arbitrary resolutions or physical print aspect ratios.
  • Cross-Platform Architecture: Tested and supported across Windows, Linux (Ubuntu, Debian, Fedora), and macOS (Apple Silicon arm64 & Intel x86_64).
  • GPU Acceleration with Seamless CPU Fallback: Automatically discovers and utilizes discrete Vulkan GPUs (NVIDIA RTX/GeForce, AMD Radeon, Intel Arc/Iris, Apple Silicon via MoltenVK). In headless Docker containers or environments without GPU drivers, the engine falls back to multi-threaded CPU Lanczos super-resolution with zero crashes.
  • Hardware Diagnostics: Integrated upscalex doctor command inspects system compute devices, Vulkan support, and recommended tile dimensions.
  • Memory-Safe Tiling: Sliding-window spatial tile decomposition (--tile-size 256) processes ultra-gigapixel images without Out-Of-Memory (OOM) failures on 4GB to 8GB GPUs.
  • Automated Engine Provisioning: Downloads and validates the precompiled platform binary automatically if not found locally.
  • Print Fidelity Analysis: Automatically calculates physical print dimensions in inches and centimeters at 300 DPI, 150 DPI, and 72 DPI.

Visual Quality Comparison

Below is an empirical comparison demonstrating UpscaleX 4x super-resolution reconstruction on a low-resolution pixelated source (663 × 531 px, 0.35 MP) upscaled to high-definition print fidelity (2,652 × 2,124 px, 5.63 MP) using the realesrgan-x4plus model.

[UpscaleX Quality Comparison]

MetricOriginal SourceUpscaleX 4x Output
Pixel Dimensions663 × 5312,652 × 2,124
Total Megapixels0.35 MP5.63 MP (16× Pixel Multiplication)
Edge ReconstructionHeavy block pixelation, ringingReconstructed circular spokes, sharp contours
Max 300 DPI Print Size2.2 × 1.8 inches8.8 × 7.1 inches
Model—realesrgan-x4plus
Hardware—NVIDIA GeForce RTX 3050 Laptop GPU (10.8s)

Documentation Directory

Comprehensive technical guides are available in the docs/ directory and repository root:


Quickstart

Option 1: Install from PyPI (Simplest for CLI & MCP)

bash
pip install upscalex

Option 2: Clone and Install from Source (with uv)

bash
git clone https://github.com/The-Open-Source-Founder/upscalex.gitcd upscalex
# Create virtual environment and install packageuv venvuv pip install -e .

Inspect Available Models

bash
upscalex models

Command-Line Interface

16K Upscale (Default 4x Model)

bash
upscalex upscale input.png --target 16k

8K Supersampled Upscale

bash
upscalex upscale poster.png --target 8k -o poster_8k.png

2D Illustration / Anime Artwork

bash
upscalex upscale graphic.png --model realesrgan-x4plus-anime --target 8k

Image and Print Sizing Inspection

bash
upscalex info input.png

Hardware and Content-Aware Model Recommendation

bash
upscalex recommend input.png

For complete options and arguments, see the CLI Guide.


Model Context Protocol (MCP) Integration

UpscaleX runs as a native MCP server over stdio, enabling AI agents (Claude Desktop, Cursor, Antigravity, Windsurf, Zed) to inspect image metadata, evaluate print viability, and execute upscaling autonomously.

Server Invocation

bash
# Standalone entrypointupscalex-mcp
# Or via CLIupscalex serve

Client Configuration

Method 1: Using Pip (pip install upscalex)
A. Claude Desktop

Configuration file paths:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
json
{  "mcpServers": {    "upscalex": {      "command": "upscalex-mcp"    }  }}

Note: If your environment does not have global pip binaries in PATH, use explicit Python:

json
{  "mcpServers": {    "upscalex": {      "command": "python",      "args": ["-m", "upscalex.server"]    }  }}
B. Default / Common MCP Clients (Cursor, Antigravity, Windsurf, Claude Code)

Configuration file: mcp_config.json or .cursor/mcp.json

json
{  "mcpServers": {    "upscalex": {      "command": "upscalex-mcp"    }  }}

Method 2: Using Git Clone & Source Checkout
A. Claude Desktop (with uv or virtualenv)
json
{  "mcpServers": {    "upscalex": {      "command": "uv",      "args": [        "run",        "--directory",        "/absolute/path/to/upscalex",        "upscalex-mcp"      ]    }  }}

Direct virtual environment alternative (Windows / Linux / macOS):

json
{  "mcpServers": {    "upscalex": {      "command": "/absolute/path/to/upscalex/.venv/bin/python",      "args": ["-m", "upscalex.server"]    }  }}

(On Windows, use C:\\absolute\\path\\to\\upscalex\\.venv\\Scripts\\python.exe)

B. Default / Common MCP Clients (Cursor, Antigravity, Windsurf)

Configuration file: mcp_config.json or .cursor/mcp.json

json
{  "mcpServers": {    "upscalex": {      "command": "uv",      "args": [        "run",        "--directory",        "/absolute/path/to/upscalex",        "upscalex-mcp"      ]    }  }}

For complete tool schemas and JSON-RPC contracts, see the MCP Guide.


Model Matrix and Catalog

UpscaleX supports both pre-packaged core models and on-demand downloadable community models:

Model IDScaleTarget MediaVRAM RequirementStatusDescription
realesrgan-x4plus4xPhotos / Fine ArtMedium (4GB VRAM)InstalledFlagship model for high-fidelity photography, art, and exhibition posters.
realesrgan-x4plus-anime4xAnime / IllustrationMedium (4GB VRAM)InstalledPreserves flat colors, sharp contours, and line definition in 2D illustrations.
realesr-animevideov3-x44xVideo / Fast PreviewsLow (1GB-2GB / CPU)InstalledLightweight 4x feed-forward model for fast turnaround and low-spec systems.
realesr-animevideov3-x22xAnimation / VideoLow (1GB-2GB / CPU)InstalledFast 2x model for video frames, icons, and lightweight web assets.
realesr-animevideov3-x33xAnimation / VideoLow (1GB-2GB / CPU)InstalledFast 3x model for intermediate scaling.
realesr-general-x4v34xGeneral / CompactLow (2GB VRAM)InstalledOfficial compact general model with low memory consumption.
4x-ultrasharp4xPortraits / Ultra-DetailMedium-High (4GB-6GB)DownloadableCommunity champion for micro-textures, portraits, fabrics, and skin.
4x-nmkd-superscale4xClean PhotorealisticMedium-High (4GB-6GB)DownloadableTrained on clean photography; preserves hair, threads, and foliage.
realesrgan-anime-6b4xAnime / FastLow (1GB-2GB / CPU)Downloadable6-block lightweight anime model for rapid processing.

Download Additional Models

Download models through the CLI or via the download_model MCP tool:

bash
# Download 4x UltraSharp for portraitsupscalex download-model 4x-ultrasharp
# Download NMKD clean photo modelupscalex download-model 4x-nmkd-superscale

Testing and Verification

Run the test suite to verify model resolution calculation, CLI exit codes, and live GPU inference:

bash
uv pip install -e ".[dev]"uv run pytest -v

All tests must pass prior to submitting changes.


Contributing

Contributions to UpscaleX are welcome. Please read CONTRIBUTING.md for coding standards, pull request processes, and development guidelines.


License

This project is licensed under the MIT License. See the LICENSE file for details.

来源:README.md,提交 6310bdf

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Nov 7, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分