Skip to content

Add notebook for DarkIR model #2953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .ci/spellcheck/.pyspelling.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ CUDA
CustomEncoderWav
CVF
CVPR
CNNs
Databricks
databricks
dataloader
Expand All @@ -164,6 +165,7 @@ DataLoaders
DataModule
dataset
datasets
DarkIR
DaViT
DCAE
DDIM
Expand Down Expand Up @@ -436,6 +438,7 @@ Jupyter's
JupyterLab
Kaiming
Kalman
kagglehub
kbps
KD
KDE
Expand Down Expand Up @@ -509,6 +512,10 @@ LogSoftmax
LoRA
LoRAs
lora
LOLBlur
LOLv
LOL
LLIE
lraspp
LRASPP
LTS
Expand Down Expand Up @@ -857,6 +864,7 @@ ResNet
resnet
RetinaFace
RetroMAE
Retinex
RGB
Riffusion
riffusion
Expand Down
29 changes: 29 additions & 0 deletions notebooks/darkir-image-restoration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Low-Light Image Restoration with DarkIR model using OpenVINO™

[DarkIR](https://arxiv.org/abs/2412.13443) is an CNN model for Low-Light Image Restoration.

Photography during night or in dark conditions typically suffers from noise, low light and blurring issues due to the dim environment and the common use of long exposure. Although Deblurring and Low-light Image Enhancement (LLIE) are related under these conditions, most approaches in image restoration solve these tasks separately. DarkIR is an efficient and robust neural network for multi-task low-light image restoration. This approach proposes new attention mechanisms to enhance the receptive field of efficient CNNs. Current method reduces the computational costs in terms of parameters and MAC operations compared to previous methods. DarkIR achieves new state-of-the-art results on the popular LOLBlur, LOLv2 and Real-LOLBlur datasets, being able to generalize on real-world night and dark images.

![networks-scheme](https://raw.githubusercontent.com/cidautai/DarkIR/refs/heads/main/assets/networks-scheme.png)

[**image_source*](https://github.com/cidautai/DarkIR/blob/main/assets/networks-scheme.png)

You can find more information about this model in the [research paper](https://arxiv.org/abs/2412.13443) and GitHub [repository](https://github.com/cidautai/DarkIR).


The notebook contains the following steps:

1. Prepare the PyTorch model.
2. Prepare data and perform inference of the PyTorch model with image.
3. Convert model to OpenVINO IR, using the model conversion API.
4. Run inference with OpenVINO with image and video.
5. Launch interactive demo


## Installation Instructions

This is a self-contained example that relies solely on its own code.</br>
We recommend running the notebook in a virtual environment. You only need a Jupyter server to start.
For details, please refer to [Installation Guide](../../README.md)..

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=5b5a4db0-7875-4bfb-bdbd-01698b5b1a77&file=notebooks/darkir-image-restoration/README.md" />
Loading