This is the repo for academic benchmark of LanPaint
- Python 3.9 or higher
- A Linux-based operating system (e.g., Ubuntu)
makeutility for build automation
-
Create a Python Virtual Environment
Create and activate a new Python virtual environment to manage dependencies:python3 -m venv venv source venv/bin/activate -
Install System Dependencies
Ensuremakeis installed on your Linux system. Run the following commands:sudo apt update sudo apt install make
-
Install Python Dependencies
pip install -r requirements.txt
-
Download the Pre-trained Model
Download the pre-trained model checkpoint from the following link:
256x256_diffusion_uncond.pt
Place the downloaded file in the./checkpointsdirectory. -
Run the Benchmark
Execute the benchmark using the providedmakecommand:make run_imagenet
-
Check Results
Metrics like LPIPS and FID will be output into./resultsas a CSV file.
@misc{zheng2025lanpainttrainingfreediffusioninpainting,
title={Lanpaint: Training-Free Diffusion Inpainting with Exact and Fast Conditional Inference},
author={Candi Zheng and Yuan Lan and Yang Wang},
year={2025},
eprint={2502.03491},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2502.03491},
}