• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 2 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[TPAMI 2023 / ACMMM 2022 Best Paper Runner-Up Award] Learnability Enhancement for Low-light Raw Denoising: Where Paired Real Data Meets Noise Modeling (a Data Perspective)

PMN (Paired real data Meet Noise model)

The official implementation of ACMMM 2022 Award Candidates "Learnability Enhancement for Low-light Raw Denoising: Where Paired Real Data Meets Noise Modeling" 【Arxiv / ACM DL
Presentation video for the Best Paper Session: YouTube / BiliBili
Interested readers are also referred to our official Note about this work in Zhihu (Chinese).

🎉 News

Please switch to the TPAMI branch to get the latest version of PMN
TPAMI branch is compatible with this branch on evaluation, but has little difference on training

(2023.08.30): 📰 We have written an official blog post (in Chinese) for the TPAMI version of the paper. I believe this blog will help you gain a deeper understanding of our work.
(2023.08.03): 🎉 Our paper was accepted by IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) 2023~~

✨ Highlights

Pipeline

  • We present a learnability enhancement strategy to reform paired real data according to noise modeling. Our strategy consists of two efficient techniques: shot noise augmentation (SNA) and dark shading correction (DSC).
  • SNA improves the precision of data mapping by increasing the data volume. Benefiting from the increased data volume, the mapping can promote the denoised images with clear texture.
  • DSC reduces the complexity of data mapping by reducing the noise complexity. Benefiting from the reduced noise complexity, the mapping can promote the denoised images with exact colors.

Ablation

📋 Prerequisites

  • Python >=3.6, PyTorch >= 1.6
  • Requirements: opencv-python, rawpy, exifread, h5py, scipy
  • Platforms: Ubuntu 16.04, cuda-10.1
  • Our method can run on the CPU, but we recommend you run it on the GPU

Please download the ELD dataset and SID dataset first, which are necessary for validation (or training).
ELD (official project): download (11.46 GB)
SID (official project): download (25 GB)

🎬 Quick Start

  1. use get_dataset_infos.py to generate dataset infos
# Evaluate
python3 get_dataset_infos.py --dstname ELD --root_dir /data/ELD --mode SonyA7S2
python3 get_dataset_infos.py --dstname SID --root_dir /data/SID/Sony --mode evaltest
# Train
python3 get_dataset_infos.py --dstname SID --root_dir /data/SID/Sony --mode train
  1. evaluate
# If you don't want to save pictures, please add '--save_plot False'. This option will save your time and space.
# ELD & SID
python3 trainer_SID.py -f runfiles/Ours.yml --mode evaltest
# ELD only
python3 trainer_SID.py -f runfiles/Ours.yml --mode eval
# SID only
python3 trainer_SID.py -f runfiles/Ours.yml --mode test
  1. train
python3 trainer_SID.py -f runfiles/Ours.yml --mode train

🔍 Code Guidelines

SNA

The parameter sampling of SNA is implemented as the raw_wb_aug_torch function in the file data_process/process.py. The complete process of SNA has the CPU version in the Mix_Dataset class in data_process/real_datasets.py and the GPU version in the preprocess function in trainer_SID.py.

DSC

Both dark shading calibration and noise calibration require massive dark frames. We provide the calibration results directly. The calibration results for dark shading are stored in the resources folder.
The raw noise parameters at each ISO are stored in the get_camera_noisy_params_max function in process.py, which can be used to calibrate the noise parameters based on a noise model (P-G or ELD).

HINT: The calibration is based on a SonyA7S2 camera, which has the same sensor as the public datasets but not the same camera.

📄 Results

Dataset Ratio Index P-G ELD SFRN Paired Ours
ELD ×100 PSNR 42.05 45.45 46.02 44.47 46.50
SSIM 0.872 0.975 0.977 0.968 0.985
×200 PSNR 38.18 43.43 44.10 41.97 44.51
SSIM 0.782 0.954 0.964 0.928 0.973
SID ×100 PSNR 39.44 41.95 42.29 42.06 43.16
SSIM 0.890 0.963 0.951 0.955 0.960
×250 PSNR 34.32 39.44 40.22 39.60 40.92
SSIM 0.768 0.931 0.938 0.938 0.947
×300 PSNR 30.66 36.36 36.87 36.85 37.77
SSIM 0.657 0.911 0.917 0.923 0.934

Note: The quantitative results on the SID dataset is different from the provided results in ELD(TPAMI) because only the central area is compared in ELD(TPAMI) on the SID dataset.

w/o brighteness alignment provided by ELD
Dataset Ratio Index P-G ELD SFRN Paired Ours
ELD ×100 PSNR 39.44 45.06 45.47 43.80 45.94
SSIM 0.780 0.975 0.976 0.963 0.984
×200 PSNR 33.76 43.21 43.65 41.54 44.00
SSIM 0.609 0.954 0.962 0.918 0.968
SID ×100 PSNR 37.50 41.21 41.38 41.39 42.65
SSIM 0.856 0.952 0.949 0.954 0.959
×250 PSNR 31.67 38.54 39.48 38.90 40.39
SSIM 0.765 0.929 0.937 0.937 0.946
×300 PSNR 28.53 35.35 35.96 36.55 37.23
SSIM 0.667 0.908 0.915 0.922 0.933

🏷️ Citation

If you find our code helpful in your research or work please cite our paper.

@inproceedings{feng2022learnability,
    author = {Feng, Hansen and Wang, Lizhi and Wang, Yuzhi and Huang, Hua},
    title = {Learnability Enhancement for Low-Light Raw Denoising: Where Paired Real Data Meets Noise Modeling},
    booktitle = {Proceedings of the 30th ACM International Conference on Multimedia},
    year = {2022},
    pages = {1436–1444},
    numpages = {9},
    location = {Lisboa, Portugal},
    series = {MM '22}
}

@ARTICLE{feng2023learnability,
  author={Feng, Hansen and Wang, Lizhi and Wang, Yuzhi and Fan, Haoqiang and Huang, Hua},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence}, 
  title={Learnability Enhancement for Low-Light Raw Image Denoising: A Data Perspective}, 
  year={2024},
  volume={46},
  number={1},
  pages={370-387},
  doi={10.1109/TPAMI.2023.3301502}
}

🤝 Acknowledgments

📧 Contact

If you would like to get in-depth help from me, please feel free to contact me ([email protected] / [email protected]) with a brief self-introduction (including your name, affiliation, and position).

More Repositories

1

NAFNet

The state-of-the-art image restoration model without nonlinear activation functions.
Python
2,195
star
2

ML-GCN

PyTorch implementation of Multi-Label Image Recognition with Graph Convolutional Networks, CVPR 2019.
Python
1,408
star
3

PETR

[ECCV2022] PETR: Position Embedding Transformation for Multi-View 3D Object Detection & [ICCV2023] PETRv2: A Unified Framework for 3D Perception from Multi-Camera Images
Python
862
star
4

video_analyst

A series of basic algorithms that are useful for video understanding, including Single Object Tracking (SOT), Video Object Segmentation (VOS) and so on.
Python
829
star
5

mdistiller

The official implementation of [CVPR2022] Decoupled Knowledge Distillation https://arxiv.org/abs/2203.08679 and [ICCV2023] DOT: A Distillation-Oriented Trainer https://openaccess.thecvf.com/content/ICCV2023/papers/Zhao_DOT_A_Distillation-Oriented_Trainer_ICCV_2023_paper.pdf
Python
801
star
6

IJCAI2023-CoNR

IJCAI2023 - Collaborative Neural Rendering using Anime Character Sheets
Jupyter Notebook
797
star
7

HiDiffusion

[ECCV 2024] HiDiffusion: Increases the resolution and speed of your diffusion model by only adding a single line of code!
Jupyter Notebook
752
star
8

megactor

Python
742
star
9

BBN

The official PyTorch implementation of paper BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognition
Python
659
star
10

MOTR

[ECCV2022] MOTR: End-to-End Multiple-Object Tracking with TRansformer
Python
614
star
11

neural-painter

Paint artistic patterns using random neural network.
Python
532
star
12

CREStereo

Official MegEngine implementation of CREStereo(CVPR 2022 Oral).
Python
483
star
13

megvii-pku-dl-course

Homepage for the joint course of Megvii Inc. and Peking University on Deep Learning.
Python
445
star
14

MOTRv2

[CVPR2023] MOTRv2: Bootstrapping End-to-End Multi-Object Tracking by Pretrained Object Detectors
Python
364
star
15

AnchorDETR

An official implementation of the Anchor DETR.
Python
335
star
16

MSPN

Multi-Stage Pose Network
Python
334
star
17

Sparsebit

A model compression and acceleration toolbox based on pytorch.
Python
325
star
18

FQ-ViT

[IJCAI 2022] FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformer
Python
304
star
19

FSCE

Python
280
star
20

OccDepth

Maybe the first academic open work on stereo 3D SSC method with vision-only input.
Python
278
star
21

TransMVSNet

(CVPR 2022) TransMVSNet: Global Context-aware Multi-view Stereo Network with Transformers.
Python
268
star
22

RevCol

Official Code of Paper "Reversible Column Networks" "RevColv2"
Python
248
star
23

TLC

Test-time Local Converter
Python
229
star
24

DCLS-SR

Official PyTorch implementation of the paper "Deep Constrained Least Squares for Blind Image Super-Resolution", CVPR 2022.
Python
220
star
25

SOLQ

"SOLQ: Segmenting Objects by Learning Queries", SOLQ is an end-to-end instance segmentation framework with Transformer.
Python
198
star
26

introduction-neural-3d-reconstruction

Course materials for Introduction to Neural 3D Reconstruction
185
star
27

AAAI2023-PVD

Official Implementation of PVD and PVDAL: http://sk-fun.fun/PVD-AL/
Python
183
star
28

tf-tutorials

Tutorials for deep learning course here:
Jupyter Notebook
180
star
29

DPGN

[CVPR 2020] DPGN: Distribution Propagation Graph Network for Few-shot Learning.
Python
178
star
30

CADDM

Official implementation of ID-unaware Deepfake Detection Model
C++
146
star
31

Far3D

[AAAI2024] Far3D: Expanding the Horizon for Surround-view 3D Object Detection
Jupyter Notebook
140
star
32

megfile

Megvii FILE Library - Working with Files in Python same as the standard library
Python
123
star
33

CR-DA-DET

The official PyTorch implementation of paper Exploring Categorical Regularization for Domain Adaptive Object Detection (CR-DA-DET)
Python
115
star
34

CVPR2023-UniDistill

CVPR2023 (highlight) - UniDistill: A Universal Cross-Modality Knowledge Distillation Framework for 3D Object Detection in Bird's-Eye View
Python
103
star
35

TreeEnergyLoss

[CVPR2022] Tree Energy Loss: Towards Sparsely Annotated Semantic Segmentation
Python
102
star
36

hpman

A hyperparameter manager for deep learning experiments.
Python
95
star
37

RealFlow

The official implementation of the ECCV 2022 Oral paper: RealFlow: EM-based Realistic Optical Flow Dataset Generation from Videos
Python
93
star
38

HDR-Transformer

The official MegEngine implementation of the ECCV 2022 paper: Ghost-free High Dynamic Range Imaging with Context-aware Transformer
Python
90
star
39

Iter-E2EDET

Official implementation of the paper "Progressive End-to-End Object Detection in Crowded Scenes"
Python
88
star
40

cv-master-ex

torch version of instant-ngp, image rendering
C++
80
star
41

FSSD_OoD_Detection

[SafeAI'21] Feature Space Singularity for Out-of-Distribution Detection.
Python
80
star
42

SSQL-ECCV2022

PyTorch implementation of SSQL (Accepted to ECCV2022 oral presentation)
Python
75
star
43

expman

Shell
62
star
44

BasesHomo

The official PyTorch implementation of the paper "Motion Basis Learning for Unsupervised Deep Homography Estimation with Subspace Projection".
Python
61
star
45

megvii-tsinghua-dl-course

Slides with modifications for a course at Tsinghua University.
57
star
46

LGD

Official Implementation of the detection self-distillation framework LGD.
Python
53
star
47

protoclip

📍 Official pytorch implementation of paper "ProtoCLIP: Prototypical Contrastive Language Image Pretraining" (IEEE TNNLS)
Python
46
star
48

D2C-SR

Official MegEngine implementation of ECCV2022 "D2C-SR: A Divergence to Convergence Approach for Real-World Image Super-Resolution".
Python
44
star
49

HomoGAN

This is the official implementation of HomoGAN, CVPR2022
Python
44
star
50

FullMatch

Official implementation of FullMatch (CVPR2023)
Python
44
star
51

KD-MVS

Code for ECCV2022 paper 'KD-MVS: Knowledge Distillation Based Self-supervised Learning for Multi-view Stereo'
Python
44
star
52

AGFlow

Learning Optical Flow with Adaptive Graph Reasoning (AGFlow, AAAI-2022)
Python
42
star
53

pytorch-gym

Implementation of the Deep Deterministic Policy Gradient(DDPG) in bullet Gym using pytorch
Python
41
star
54

TPS-CVPR2023

Python
41
star
55

KPAFlow

PyTorch implementation of KPA-Flow. Learning Optical Flow with Kernel Patch Attention (CVPR-2022)
Python
38
star
56

PCB

Official code for CVPR 2022 paper "Relieving Long-tailed Instance Segmentation via Pairwise Class Balance".
Python
37
star
57

FST-Matching

Official implementation of the FST-Matching Model.
Python
37
star
58

basecls

A codebase & model zoo for pretrained backbone based on MegEngine.
Python
32
star
59

US3L-CVPR2023

PyTorch implementation of US3L (Accepted to CVPR2023)
Python
31
star
60

Sobolev_INRs

[ECCV 2022] The official experimental code of "Sobolev Training for Implicit Neural Representations with Approximated Image Derivatives"
Python
30
star
61

Portraits_Correction

Python
29
star
62

basedet

An object detection codebase based on MegEngine.
Python
28
star
63

Co-mining

Co-mining: Self-Supervised Learning for Sparsely Annotated Object Detection, AAAI 2021.
Python
27
star
64

zipfls

This repo is the official megengine implementation of the ECCV2022 paper: Efficient One Pass Self-distillation with Zipf's Label Smoothing.
Python
25
star
65

tf-cpn

Cascade Pyramid Netwrok
Python
24
star
66

Arch-Net

Arch-Net: Model Distillation for Architecture Agnostic Model Deployment
Python
22
star
67

juicefs-python

JuiceFS Python SDK
Python
21
star
68

ED-Net

PyTorch implementation of A Lightweight Encoder-Decoder Path for Deep Residual Networks.
Python
19
star
69

IntLLaMA

IntLLaMA: A fast and light quantization solution for LLaMA
Python
18
star
70

CasPL

17
star
71

MSCL

[ECCV2022] Motion Sensitive Contrastive Learning for Self-supervised Video Representation
Python
17
star
72

LBHomo

This is the official PyTorch implementation of Semi-supervised Deep Large-baseline Homography Estimation with Progressive Equivalence Constraint, AAAI 2023
Python
17
star
73

RG-SENet_SP-SENet

PyTorch implementation of Delving Deep into Spatial Pooling for Squeeze-and-Excitation Networks.
Python
17
star
74

hpargparse

argparse extension for hpman
Python
16
star
75

Sparse-Beats-Dense

[ECCV 2024] Sparse Beats Dense: Rethinking Supervision in Radar-Camera Depth Completion
Python
15
star
76

MCTrack

This is the offical implementation of the paper "MCTrack: A Unified 3D Multi-Object Tracking Framework for Autonomous Driving"
Python
14
star
77

MEMD

Megvii Electric Moped Detector (ONNX based inference)
Python
13
star
78

DVN

Python
13
star
79

Occ2net

Jupyter Notebook
13
star
80

revisitAIRL

[ECCV2022] Revisiting the Critical Factors of Augmentation-Invariant Representation Learning
Python
11
star
81

megengine-face-recognition

Python
9
star
82

SimpleDG

This is the training and test code for ECCV2022 workshop NICO challenge
Python
7
star
83

GeneGAN

Pytorch version of GeneGAN
Python
7
star
84

basecore

basecore is a simple repo that provides deep learning frame for MegEngine.
Python
7
star
85

hpnevergrad

A nevergrad extension for hpman
Python
5
star
86

DRConv

Python
4
star
87

.github

2
star