Skip to main content

A comprehensive benchmark and code base for Image manipulation and localization.

Project description

OSQ

[NeurIPS'24 Spotlight] IMDL-BenCo: Comprehensive Benchmark and Codebase for Image Manipulation Detection & Localization

Xiaochen Ma †, Xuekang Zhu†, Lei Su†, Bo Du†, Zhuohang Jiang†, Bingkui Tong†, Zeyu Lei†, Xinyu Yang†, Chi-Man Pun, Jiancheng Lv, Jizhe Zhou *


†: joint first author & equal contribution *: corresponding author
🏎️Special thanks to Dr. Wentao Feng for the workplace, computation power, and physical infrastructure support.

Arxiv Documents PyPI Downloads pypi version license

Action-Test Codecov

📰News

  • [2025/05/26] A new code base for all-domain fake image detection have been released, for more details, please visit ForensicHub Stars.

  • [2025/03/11] We have released pre-trained checkpoints on Baidu NetDisk that we utilized to report all metrics in the paper. Please see this section in our documents for details.

  • [2024/12/10] Mesorch Stars, our new IML backbone model, which adopts a parallel CNN+Transformer structure to simultaneously deal with image semantics and non-semantics, is accepted by AAAI 25!!!🎉🎉🎉

  • [2024/12/10] Sparse-ViT Stars, the very first solution of constructing the non-semantic feature extractor through a self-supervised manner in IML is proposed by us and accepted by AAAI 25!!!🎉🎉🎉

  • [2024/09/26] This paper, IMDL-BenCo, has been accepted as Spotlight to NeurIPS 2024 Track Datasets and Benchmarks!!! 🎉🎉🎉

[!IMPORTANT] Upgrade to LATEST VERSION to Avoid Bugs!

  • We Highly Recommend everyone update IMDLBenCo to the latest version v0.1.29 since we fixed a bug🐞 that may lead to inaccurate image-level metrics!!! For details, see IMDLBenCo v0.1.27 Release Notes.

Known Differences with original CAT-Net Protocol

  • The CAT-Protocol (implementation of default balanced_dataset.py) used in the IMDLBenCo paper differs from the original CAT-Net settings. Several real image datasets are omitted. Please pay special attention! For more details, please check issue #65.

🔍Overview

☑️Welcome to IMDL-BenCo, the first comprehensive IMDL benchmark and modular codebase.

  • This codebase is under long-term maintenance and updating. New features, extra baseline/SOTA models, and bug fixes will be continuously involved. You can find the corresponding plan here shortly.
  • This repo decomposes the IMDL framework into standardized, reusable components and revises the model construction pipeline, improving coding efficiency and customization flexibility.
  • This repo fully implements or incorporates training code for state-of-the-art models to establish a comprehensive IMDL benchmark.
  • Cite and star if you feel helpful. This will encourage us a lot 🥰.

⚡Quick Start

IMDL-BenCo is a Python library managed on PYPI now, It's easy to install by following the command:

pip install imdlbenco

To verify your installation, you can try the following commands:

benco -v

Of course, the following command is also okay:

benco --version

This repository is under rapid development, thus, you can also use the command above to check if the current version is our latest version.

If everything works well, it should look like this:

IMDLBenCo codebase version: 0.1.23
        Checking for updates...
        Local version:  0.1.23
        PyPI newest version:  0.1.23
You are using the latest version: 0.1.23.

For further guidance, please click the buttons below for official documentation:

Documents Documents

Documents Documents

We will keep updating the document with tricks and user cases. Please stay tuned!

We also welcome contributors to translate it into other languages.

🌟Awesome Works Using IMDLBenCo

  • BR-Gen & NFA-ViT: A Novel Dataset for Localized AI-Generated Image Detection with Forgery Amplification Approach and a corresponding noise-guided forgery amplification transformer as a solution method. GitHub Repo stars
  • ForensicHub: A code base for all-domain fake image detection, including 1) Anti-AIGC, 2) Deepfake, 3) IMDL, and 4) Document image manipulation detecion. GitHub Repo stars
  • OpenSDI: A large dataset for Spotting Diffusion-Generated Images in the Open World and a corresponding SoTA model. CVPR25. GitHub Repo stars
  • Sparse-ViT: A SoTA model constructing the non-semantic feature extractor through a sparse-designed attention transformer. AAAI'25. Stars
  • Mesorch: A SoTA model adopts a parallel CNN+Transformer structure to simultaneously deal with image semantics and non-semantics. AAAI'25. Stars
  • IML-ViT: A pure Vision Transformer based model for IML task, which easy to be extent for further research. ArXiv. Stars

If your work uses IMDLbenco and has an open-source GitHub repository, we welcome you to notify the author team by submitting a PR or opening an issue to have it added to the list above.

👨‍💻About

☑️About the Developers:

📖Citation

If you find our work valuable and it has contributed to your research or projects, we kindly request that you cite our paper. Your recognition is a driving force for our continuous improvement and innovation🤗.

@article{ma2025imdl,
  title={Imdl-benco: A comprehensive benchmark and codebase for image manipulation detection \& localization},
  author={Ma, Xiaochen and Zhu, Xuekang and Su, Lei and Du, Bo and Jiang, Zhuohang and Tong, Bingkui and Lei, Zeyu and Yang, Xinyu and Pun, Chi-Man and Lv, Jiancheng and others},
  journal={Advances in Neural Information Processing Systems},
  volume={37},
  pages={134591--134613},
  year={2025}
}

Statistics and Star History

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imdlbenco13-0.2.0.tar.gz (156.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imdlbenco13-0.2.0-py3-none-any.whl (222.3 kB view details)

Uploaded Python 3

File details

Details for the file imdlbenco13-0.2.0.tar.gz.

File metadata

  • Download URL: imdlbenco13-0.2.0.tar.gz
  • Upload date:
  • Size: 156.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imdlbenco13-0.2.0.tar.gz
Algorithm Hash digest
SHA256 900a5904aeaba734a01e62a2ebf5bd6f4398ec770445f16acc3354e7a6c39aff
MD5 8969b46c5f955fc5ae0b032bf17dba1e
BLAKE2b-256 539339cd5f8c3b88dd11f9e1d6dd872c5e89ff11e56e205837fcb68979aaeebd

See more details on using hashes here.

Provenance

The following attestation bundles were made for imdlbenco13-0.2.0.tar.gz:

Publisher: python-publish.yml on Kyliroco/IMDLBenCo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imdlbenco13-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: imdlbenco13-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 222.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imdlbenco13-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf626e1c982129d2ea0de76f84ee114eaf95c96497999efafee23459d7f8711
MD5 daf52eb24ea8d300c810ad253a0ff47b
BLAKE2b-256 c60a20f66b965ce27e4edc8e1970c3a898f2c96e7108e19e83307137f855cb3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for imdlbenco13-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on Kyliroco/IMDLBenCo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page