Downloads · 30 days
0
harsha532/low-light-super-resolution
low-light-super-resolution is a machine learning model from harsha532. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository contains the trained weights and architecture for MPRSRNet (Multi-Stage Progressive Restoration and RCAB Super-Resolution Network).
Downloads · 30 days
0
Access
Public
Updated Sep 6, 2026
Repo size
4 MB
Likes
1
Public
Click a slice to open those files.
.pth4 MB · 100%
From the Hugging Face model README
This repository contains the trained weights and architecture for MPR_SRNet (Multi-Stage Progressive Restoration and RCAB Super-Resolution Network).
import torch
from model import MPR_SRNet
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# 1. Initialize model architecture
model = MPR_SRNet(
in_channels=3,
out_channels=3,
feature_dim=64,
num_naf_blocks=5,
num_rcab_blocks=8,
scale_factor=4
)
# 2. Load trained weights
checkpoint = torch.load("best_model.pth", map_location=device)
state_dict = checkpoint.get("model_state_dict", checkpoint)
model.load_state_dict(state_dict)
model.to(device)
model.eval()
print("Model loaded successfully!")