Paper2GUI bridges the gap between cutting-edge AI research and end-user accessibility by transforming complex models into intuitive graphical interfaces. This guide walks you through configuring its JSON-based settings to unlock full customization potential — from language preferences to GPU optimization.
Why JSON Configuration Matters
The settings.json file serves as the control panel for Paper2GUI. It governs everything from UI appearance to backend model behavior. Tweaking this file lets you tailor performance, enable network proxies, or switch languages without touching code — essential for adapting tools like video upscaling or TTS synthesis to your environment.
Locating Your Configuration File
After cloning the repository:
git clone https://gitcode.com/gh_mirrors/pa/paper2gui
Navigate to config/settings.json in the project root to begin editing.
Core Structure Breakdown
Global Settings
{
"locale": "zh-CN",
"appearance": "light",
"network": {
"use_proxy": false,
"endpoint": "http://127.0.0.1:1080"
}
}
locale: Interface language (e.g.,"en","jp"). Language packs reside indocs/languages/.appearance: Theme mode —"light"or"dark".network: Proxy configurasion for external API access (e.g., Azure TTS).
Model-Specific Parameters (Example: RealESRGAN)
"video_enhancer": {
"upscale_factor": 2,
"noise_reduction": 1,
"preset": "anime_x4",
"gpu_workers": 4
}
upscale_factor: Magnification level (2x, 4x, 8x).noise_reduction: Denoising strength (-1 to 3; -1 disables).preset: Model variant optimized for specific content types.gpu_workers: Parallel GPU threads — adjust based on VRAM (e.g., 4 for RTX 2070).
Optimization Tips
Hardware-Aware Tuning
On low-end GPUs, switch to lightweight models like Waifu2x and reduce gpu_workers to avoid memory overflow.
Multi-Language Setup
Change locale to "en" for English. UI reloads instantly — no restart needed. Language files follow <module>-<lang>.yml naming (e.g., realesrgan-gui/en.yml).
Proxy for Restircted Networks
"network": {
"use_proxy": true,
"endpoint": "http://your-proxy:port"
}
Required for cloud-dependent features like Microsoft Speech Services.
Troubleshooting
- Changes not applying? Validate JSON syntax (no trailing commas) and restart the aplication.
- Backup configs? Copy
settings.jsonto a secure location — restore by overwriting after reinstallation. - Cross-feature interference? Configurations are sandboxed per module — video and audio settings operate independently.
Project repository: https://gitcode.com/gh_mirrors/pa/paper2gui