https://github.com/banterle/nor-vdpnet
A no-reference version of HDR-VDP using deep-learning
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Keywords
Repository
A no-reference version of HDR-VDP using deep-learning
Basic Info
Statistics
- Stars: 26
- Watchers: 2
- Forks: 3
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
NoR-VDPNet
NoR-VDPNet is a deep-learning based no-reference metric trained on HDR-VDP. Traditionally, HDR-VDP requires a reference image, which is not possible to have in some scenarios.

NoR-VDPNet is a no-reference metric, so it requires a single image in order to asses its quality. NoR-VDPNet can be trained on High Dynamic Range (HDR) images or Standard Dynamic Range (SDR) images (i.e., classic 8-bit images).

DEPENDENCIES:
Requires the PyTorch library along with Image, NumPy, SciPy, Matplotlib, glob2, pandas, and scikit-learn.
As the first step, you need to follow the instructions for installing PyTorch.
To install dependencies, please use the following command:
bash
pip3 install numpy, scipy, matplotlib, glob2, pandas, image, scikit-learn, opencv-python.
HOW TO RUN IT:
To run our metric on a folder of images (i.e., JPEG, PNG, EXR, HDR, and MAT files),
you need to launch the file norvdpnet.py. Some examples:
Testing SDR images for the trained distortions (see the paper):
python3 norvdpnet.py SDR /home/user00/images_to_be_sdr/
Testing HDR images after JPEG-XT compression:
python3 norvdpnet.py HDR_COMP /home/user00/images_to_be_hdr/
Testing HDR images after tone mapping operators:
python3 norvdpnet.py SDR_TMO /home/user00/images_to_be_sdr/
Testing images after inverse tone mapping operators:
python3 norvdpnet.py HDR_ITMO /home/user00/images_to_be_hdr/
WEIGHTS DOWNLOAD:
Weights can be downloaded at this link.
Note that these weights are meant to model ONLY determined distortions; please see reference to have a complete overview.
DO NOT:
There are many people use NoR-VDPNet in an appropriate way:
1) Please do not use weightsnorsdr for HDR images;
2) Please do not use weightsnorjpg_xt for SDR images;
3) Please do not use weightsnortmo for HDR images; only gamma-encoded SDR images!!!
4) Please do not use weightsnoritmo for SDR images;
5) Please do not use weights for different distortions.
DATASET PREPARATION:
If you want to create your own dataset for a given distortion (note you can apply more distortions),
the first step is to apply such distortion to a set of input original images. Then, the second step is to run
HDR-VDP on all pair of images
Files need to be organized using the following folder hierarchy:
__dataset_folder/:
|_______stim/
|_______data.csv
JPG/PNG/EXR/HDR/MAT files for distorted images go in the stim/ folder, and the Q values and links to their
respective image need to be stored in the data.csv file. Please have a look at this data.csv file example:
Distorted,Q
stim/img000.png,95.33
stim/img001.jpg,73.23
stim/img002.jpg,87.57
stim/img003.jpg,71.23
stim/img005.png,82.30
When using the .mat file format for HDR images, such images need to be stored as a variable image.
TRAINING:
If you want to train our metric, you need to run train.py file. This line shows how to
train the metric for a dataset in the folder /home/users00/data1 for 75 epochs with batch size 16
and learning rate 1e-4:
python3 train.py /home/users00/data1 -e 75 --lr=1e-4 -b 32
Note that the folder data1 needs to contain the file data.csv and the subfolder stim.
In our paper, we trained SDR and HDR datasets with these paramters:
Learning Rate: 1e-4
Batch Size: 32
Epochs: 75
REFERENCE:
If you use NoR-VDPNet in your work, please cite it using this reference:
@inproceedings{Banterle+2020,
author = "Banterle, Francesco and Artusi, Alessandro and Moreo, Alejandro and Carrara, Fabio",
title = "Nor-Vdpnet: A No-Reference High Dynamic Range Quality Metric Trained On Hdr-Vdp 2",
booktitle = "IEEE International Conference on Image Processing (ICIP)",
month = "October",
year = "2020",
publisher = "IEEE",
keywords = "HDR-VDP, HDRI, HDR, SDR, LDR",
url = "http://vcg.isti.cnr.it/Publications/2020/BAMC20"
}
Owner
- Name: Francesco Banterle
- Login: banterle
- Kind: user
- Location: Italy
- Company: ISTI-CNR
- Repositories: 1
- Profile: https://github.com/banterle
GitHub Events
Total
- Watch event: 2
- Push event: 3
Last Year
- Watch event: 2
- Push event: 3
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 5
- Total pull requests: 0
- Average time to close issues: 19 days
- Average time to close pull requests: N/A
- Total issue authors: 3
- Total pull request authors: 0
- Average comments per issue: 6.6
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- TIM-ysh (2)
- xuexiy1ge (1)
- Mr-Kyrie (1)