Commit Graph

1 Commits

Author SHA1 Message Date
LemonNexus 5374eba08f feat: add Real-ESRGAN AI upscaling support
- New module: modules/ai_upscaler.py
  - Real-ESRGAN integration for AI-powered upscaling
  - Designed specifically for low-res game textures/icons
  - 4x upscale factor with neural network enhancement
  - Falls back gracefully if model not available

- Updated TGA Converter UI:
  - New "AI Enhanced (Real-ESRGAN)" option in upscale dropdown
  - Only shown if Real-ESRGAN is installed
  - AI upscaling happens before canvas placement
  - Shows progress during AI model loading

Real-ESRGAN is much better than basic methods for rendered (non-pixel) icons!

To use AI upscaling:
1. pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
2. pip install realesrgan
3. Download RealESRGAN_x4plus.pth model
4. Select "AI Enhanced" in the UI
2026-02-11 17:32:40 +00:00