Downloads · 30 days
6
16% of all-time downloads
praveena214/nppe-3
nppe-3 is a image-to-image model from praveena214. Use it when you need one image transformed into another. The card lists the license as bsd-3-clause.
Fine-tuned Real-ESRGAN (RRDBNet, x4plus) for joint low-light image denoising and 4x super-resolution, trained for the DLP26T2 NPPE-3 Kaggle competition.
Downloads · 30 days
6
16% of all-time downloads
All-time downloads
38
Public
Repo size
67 MB
Likes
0
Public
Click a slice to open those files.
.pth67 MB · 100%
From the Hugging Face model README
Fine-tuned Real-ESRGAN (RRDBNet, x4plus) for joint low-light image denoising and 4x super-resolution, trained for the DLP26T2 NPPE-3 Kaggle competition.
Given a noisy, low-light, low-resolution input image, produce a denoised output at 4x the input resolution.
RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)RealESRGAN_x4plus.pth
(https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth)gt/ = clean high-res target, train/ = noisy low-res input)torch.amp)import torch
from basicsr.archs.rrdbnet_arch import RRDBNet
model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)
state_dict = torch.load('best_model.pth', map_location='cpu')['params_ema']
model.load_state_dict(state_dict)
model.eval()
# input: float tensor in [0,1], shape (1, 3, H, W)
# output: float tensor in [0,1], shape (1, 3, H*4, W*4)
with torch.no_grad():
output = model(input_tensor).clamp(0, 1)
Base model released under BSD-3-Clause by the original Real-ESRGAN authors (xinntao et al.). This fine-tuned checkpoint inherits that license.