CodingSheep1229 / Dunhuang-Image-Restoration

Dunhuang Image Restoration using partial convolution and SSIM loss
MIT License
4 stars 1 forks source link

Dunhuang-Image-Restoration

final project of NTU DLCV fall2019

Dunhuang Image Restoration using partial convolution and SSIM loss \ by 鄭揚,李信穎,唐瑋廷

illustration

Introduction

In this project, we employed NVIDIA’s Partial Convolutions with an U-Net architecture and structural similarity loss function to restore incomplete Dunhuang images. The model surpassed baseline with quantitative evaluation and produced high-quality restoration result.

The original challenge website is provided here.

Result

Score value
MSE 35.153
SSIM 0.805

illustration

Dataset

To get the dataset for this project, please use the following command:

bash download.sh

All the data is under ./Data_Challenge2, and the dataset is aranged as below:

Inference

To install dependencies

pip3 install -r requirements.txt

To execute script

CUDA_VISIBLE_DEVICES=GPU_NUMBER bash final.sh $1 $2

Evaluation

We evaluate the quality of restored images with Mean Square Error (MSE) and Structural Similarity Index (SSIM).

python3 evaluate.py -g $1 -p $2