Downloads · 30 days
3
14% of all-time downloads
vedantmgoyal/dlp-nppe3
dlp-nppe3 is a machine learning model from vedantmgoyal. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
U-Net encoder/decoder built from NAFNet blocks (paper-faithful LayerNorm2d + linear channel attention), trained with PyTorch Lightning + EMA. Input: 256x160 noisy LR RGB. Output: 1024x640 clean HR RGB.
Downloads · 30 days
3
14% of all-time downloads
All-time downloads
22
Public
Repo size
110 MB
Likes
0
Public
Click a slice to open those files.
.ckpt110 MB · 100%
From the Hugging Face model README
U-Net encoder/decoder built from NAFNet blocks (paper-faithful LayerNorm2d + linear channel
attention), trained with PyTorch Lightning + EMA. Input: 256x160 noisy LR RGB. Output: 1024x640
clean HR RGB.
Single checkpoint (resume-epoch=135-val_psnr=39.137.ckpt) -- the best result from a warm-restart resume run.
from huggingface_hub import hf_hub_download
import sys, os
model_py_path = hf_hub_download("vedantmgoyal/dlp-nppe3", "model.py")
ckpt_path = hf_hub_download("vedantmgoyal/dlp-nppe3", "resume-epoch=135-val_psnr=39.137.ckpt")
sys.path.insert(0, os.path.dirname(model_py_path))
from model import SRLitModule
model = SRLitModule.load_from_checkpoint(ckpt_path, weights_only=False)
model.eval()
# inference
sr_img = model(lr_img_tensor).clamp(0, 1)