KPAC: Kernel-Sharing Parallel Atrous Convolutional block

License CC BY-NC

This repository contains the official Tensorflow implementation of the following paper:

Single Image Defocus Deblurring Using Kernel-Sharing Parallel Atrous Convolutions
Hyeongseok Son, Junyong Lee, Sunghyun Cho, Seungyong Lee, ICCV 2021

Getting Started


Tested environment

Ubuntu16.04 Python 2.7.12 Tensorflow 1.10.0 CUDA 9.0

  1. Pre-trained models

     ├── ./pretrained
     │   ├── single_2level.npz
     │   ├── single_3level.npz
     │   ├── dual.npz
  2. Built-in Tensorlayer (modified from Tensorlayer 1.7.0)

     ├── ./tensorlayer
  3. Datapath setting in

Testing models of ICCV2021

# Our 2-level model 

# Our 3-level model 

# Our dual pixel-based model


If you find this code useful, please consider citing:

    author = {Son, Hyeongseok and Lee, Junyong and Cho, Sunghyun and Lee, Seungyong},
    title = {Single Image Defocus Deblurring Using Kernel-Sharing Parallel Atrous Convolutions},
    booktitle = {Proc. ICCV},
    year = {2021}


Open an issue for any inquiries. You may also have contact with [email protected]


This software is being made available under the terms in the LICENSE file.

Any exemptions to these terms require a license from the Pohang University of Science and Technology.

About Coupe Project

Project ‘COUPE’ aims to develop software that evaluates and improves the quality of images and videos based on big visual data. To achieve the goal, we extract sharpness, color, composition features from images and develop technologies for restoring and improving by using them. In addition, personalization technology through user reference analysis is under study.

Please checkout other Coupe repositories in our Posgraph github organization.

Useful Links