Practical overview
When it fits
Use Ifan when you need a research codebase for single-image defocus deblurring and can manage its Python, PyTorch and CUDA environment, datasets and model weights.
Who it is for
- Computer-vision researchers studying single-image defocus deblurring.
- Developers who want to examine or adapt a PyTorch image-restoration research implementation.
Documented uses
- Evaluate pretrained IFAN model variants on the DPDD dataset.
- Set up the documented environment for IFAN research code.
- Use the training and evaluation code as a basis for studying defocus-deblurring methods.
Requirements & limits
The repository is public and specifies the AGPL-3.0 license.
- The documented workflows require a Python environment and CUDA-specific installation path; Docker is also described as an option.
- Evaluation requires datasets and pretrained weights, which the README instructs users to download and place in specified locations.
- The README warns that the current IAC layer uses identical separable kernels and recommends correcting it before training from scratch.
- The README associates the implementation with a CVPR 2021 paper and provides project and paper links.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the IFAN environment with Conda
Prepare a Conda environment using one of the CUDA installation options described in the repository.
Before you start
- Git and Conda
- A CUDA 10.2, 11.1 or 11.3 setup matching the selected installation script
Steps
Clone the IFAN repository and change into its directory.
For CUDA 10.2, create and activate the IFAN environment with Python 3.6, then run install_CUDA10.2.sh.
For CUDA 11.1 or 11.3, create and activate the IFAN environment with Python 3.8, then run the corresponding install_CUDA11.1.sh or install_CUDA11.3.sh script.
Expected outcome
A Conda environment set up through one of the repository's documented CUDA-specific installation paths.
Guide limitations
- The repository lists tested environments including Ubuntu 16.04/18.04, Python 3.8.8, PyTorch 1.7.1 through 1.11.0, and CUDA 10.2, 11.1 or 11.3; the installation instructions also specify Python 3.6 for CUDA 10.2.
- This procedure covers environment setup only, not running evaluation or training.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 27 November 2026
- Original website title
- codeslake/IFAN · Official homepage title · retained in its source language

