Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
DeeCLIP — Implementation of paper "DeeCLIP: A Robust and Generalizable Transformer-Based Framework for Detecting AI-Generated Images" | Kitploit
Tools/GitHubGitHub/mamadou-keita/deeclip
Machine LearningPapers & ResearchAI SecurityAdversarial Attack
GitHubmamadou-keita/deeclip

DeeCLIP

Implementation of paper "DeeCLIP: A Robust and Generalizable Transformer-Based Framework for Detecting AI-Generated Images"

View Repository
156 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

DeeCLIP: A Robust and Generalizable Transformer-Based Framework for Detecting AI-Generated Images

☀️ If you find this work useful for your research, please kindly star our repo and cite our paper! ☀️

TODO

We are working hard on the following items:

  • Release ArXiv paper
  • Release training scripts
  • Release inference scripts
  • Release checkpoints

DeeCLIP

DeeCLIP is a novel framework for detecting AI-generated images using a combination of CLIP-ViT and fusion learning. As generative models continue to improve, detecting synthetic images becomes more challenging due to poor generalization and vulnerability to common image manipulations. DeeCLIP tackles these issues with a robust and adaptable architecture.


🔍 Overview

DeeCLIP enhances the detection of AI-generated images by integrating:

  • ✅ Zero-shot learning via CLIP-ViT for model-agnostic generalization.
  • 🧠 LoRA-based fine-tuning to efficiently adapt without forgetting.
  • 🔀 DeeFuser: a custom fusion module combining deep and shallow features for post-processing robustness.
  • 🎯 Triplet loss to structure the embedding space and improve the real vs. fake discrimination.

Approach Image

Requirements

root@kitploit:~
pip install -r requirements.txt

Download Model Weights

To use the model, download the weight and save it in the weights folder.

Automatic Download (Command Line)

Run the following command in your terminal:

root@kitploit:~
mkdir -p weights && wget -O weights/deeclip_weight_complete_with_lora_5.pth "https://www.dropbox.com/scl/fi/ttiqnbxu8atz4on5gqvgd/deeclip_weight_complete_with_lora_5.pth?rlkey=6xznuvriabkqfdcofhi1pbihu&st=fk02k7hf&dl=1"

SOTA Detection Methods

  • C2P-CLIP
  • RINE
  • FatFormer
  • AntifakePrompt
  • Bi-LORA

Evaluation

To run the test on specific dataset, use the following command:

root@kitploit:~
python testing.py

T-SNE Plot of feature distribution

Generalization Performance of Methods Trained on ProGAN

Results show accuracy (%) on real and synthetic data subsets.

📖 Citation

if you make use of our work, please cite our paper

root@kitploit:~
@misc{keita2025deecliprobustgeneralizabletransformerbased,
      title={DeeCLIP: A Robust and Generalizable Transformer-Based Framework for Detecting AI-Generated Images}, 
      author={Mamadou Keita and Wassim Hamidouche and Hessen Bougueffa Eutamene and Abdelmalik Taleb-Ahmed and Abdenour Hadid},
      year={2025},
      eprint={2504.19876},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2504.19876}, 
}
Download Tool
MethodsTraining Set#paramsMS COCOFlickrControlNetDall3DiffusionDBIFLaMALTESD2InpaintSDXLSGXLSD3mAcc
FatFormerProGAN493M33.9734.0428.2732.0728.1027.9528.6712.3722.6331.9722.2335.9128.18
RINEProGAN434M99.8099.9091.6075.0073.0077.4030.9098.2071.9022.9098.5008.3070.56
C2P-CLIPProGAN304M99.6799.7315.1075.5727.8789.5665.4300.2027.9082.9007.1770.4655.13
DecCLIPProGAN306M97.8398.5086.0369.3371.1061.3763.0799.9780.5762.6098.9058.6178.99