Skip to content
Open
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
Binary file added datasets/dnd/dnd_rgb/noisy/0001_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0001_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0002_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0002_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0002_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0002_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0002_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasets/dnd/dnd_rgb/noisy/0002_14.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_15.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_16.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_17.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_18.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_19.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_2.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_20.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_3.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_4.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_5.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_6.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_7.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_8.png
Binary file added datasets/dnd/dnd_rgb/noisy/0002_9.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_1.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_10.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_2.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_3.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_4.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_5.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_6.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_7.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_8.png
Binary file added datasets/dnd/dnd_rgb/noisy/0003_9.png
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake
build-essential
libjpeg-dev
libpng-dev
conda create -n pytorch1 python=3.7
conda activate pytorch1
conda install pytorch=1.1 torchvision=0.3 cudatoolkit=9.0 -c pytorch
pip install matplotlib scikit-image yacs lycon natsort h5py tqdm
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.7
8 changes: 4 additions & 4 deletions utils/image_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import torch
import numpy as np
from skimage.measure.simple_metrics import compare_psnr
from skimage.metrics import peak_signal_noise_ratio
import pickle
import lycon
from skimage.measure import compare_ssim
from skimage.metrics import structural_similarity


def is_numpy_file(filename):
Expand Down Expand Up @@ -47,7 +47,7 @@ def batch_PSNR(img, imclean, data_range):
Iclean = imclean.data.cpu().numpy().astype(np.float32)
PSNR = []
for i in range(Img.shape[0]):
psnr = compare_psnr(Iclean[i,:,:,:], Img[i,:,:,:], data_range=data_range)
psnr = peak_signal_noise_ratio(Iclean[i,:,:,:], Img[i,:,:,:], data_range=data_range)
if np.isinf(psnr):
continue
PSNR.append(psnr)
Expand All @@ -59,7 +59,7 @@ def batch_SSIM(img, imclean):
Iclean = imclean.data.cpu().numpy().astype(np.float32)
SSIM = []
for i in range(Img.shape[0]):
ssim = compare_ssim(Iclean[i,:,:,:], Img[i,:,:,:], gaussian_weights=True, use_sample_covariance=False, multichannel =True)
ssim = structural_similarity(Iclean[i,:,:,:], Img[i,:,:,:], gaussian_weights=True, use_sample_covariance=False, multichannel =True)
SSIM.append(ssim)
return sum(SSIM)/len(SSIM)

Expand Down