How theonlysg/super-resolution-model works
Beyond Resolutions is a web workstation for 4× multispectral satellite-image super-resolution, land-cover analysis, and reference-based quality validation. The main workflow uploads an image, runs RCAN inference, presents a preview and downloadable output, then optionally segments the SR image or compares it with an uploaded high-resolution reference. The backend also preserves a scientific SR tensor for validation. Frontend-to-API wiring is not visible in the excerpts, so those links are marked unverified; unsampled route details are not expanded.
Main entry points: main.py HTTP API · inference.py SR inference · validation.py Validation engine · app.js SR workstation
Components 13
Web interface
- SR workstation
frontend/app.js - Validation viewer
frontend/validation.js
Inference service
- HTTP API
backend/main.py - Image loading
backend/image_utils.py - SR inference
backend/inference.py
Scientific analysis
- SegFormer loader
model/segmentation/seg_model.py - Segmentation config
model/segmentation/config.py - Land-cover analysis
model/segmentation/inference.py - Validation engine
backend/validation.py
Models and artifacts
- RCAN networks
backend/model.py - SR outputs
backend/inference.py
Other components
- User
- HR reference
Connections 16
- User → SR workstation: uploads image
README.md - SR workstation → HTTP API: requests inference
- HTTP API → SR inference: runs inference
backend/main.py - SR inference → RCAN networks: runs network
backend/inference.py - SR inference → Image loading: loads images
backend/inference.py - SR inference → SR outputs: saves SR data
backend/inference.py - HTTP API → SegFormer loader: loads model
backend/main.py - SegFormer loader → Segmentation config: uses model path
model/segmentation/seg_model.py - HTTP API → Land-cover analysis: runs segmentation
backend/main.py - HTTP API → Validation engine: runs validation
backend/main.py - Validation engine → SR outputs: reads SR tensor
backend/validation.py - Validation engine → Image loading: stretches preview
backend/validation.py - User → Validation viewer: opens validation
README.md - Validation viewer → HTTP API: submits reference
- User → HR reference: provides reference
README.md - HR reference → HTTP API: uploads reference