This is the repo for academic benchmark of LanPaint
make utility for build automationCreate 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
Ensure make is 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 ./checkpoints directory.
Run the Benchmark
Execute the benchmark using the provided make command:
make run_imagenet
Check Results
Metrics like LPIPS and FID will be output into ./results as 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},
}
This is the repo for academic benchmark of LanPaint
make utility for build automationCreate 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
Ensure make is 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 ./checkpoints directory.
Run the Benchmark
Execute the benchmark using the provided make command:
make run_imagenet
Check Results
Metrics like LPIPS and FID will be output into ./results as 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},
}