nebula commited on
Commit
7163597
·
verified ·
1 Parent(s): 1e57700

Add PoundNet model card

Browse files
Files changed (1) hide show
  1. README.md +132 -3
README.md CHANGED
@@ -1,3 +1,132 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: image-classification
4
+ library_name: pytorch
5
+ base_model: openai/clip-vit-large-patch14
6
+ tags:
7
+ - ai-generated-image-detection
8
+ - deepfake-detection
9
+ - synthetic-image-detection
10
+ - image-forensics
11
+ - clip
12
+ - vision-language-model
13
+ - prompt-learning
14
+ - pytorch-lightning
15
+ - arxiv:2408.08412
16
+ ---
17
+
18
+ # PoundNet
19
+
20
+ PoundNet checkpoint weights for the paper **"Penny-Wise and Pound-Foolish in AI-Generated Image Detection"**.
21
+
22
+ PoundNet is a CLIP-based AI-generated image detector built around asymmetric prompt learning for binary real/fake classification and category-aware supervision. The method is designed to reduce the "penny-wise and pound-foolish" behavior of deepfake detectors: strong performance on a narrow training distribution but poor generalization and degraded upstream semantic knowledge.
23
+
24
+ These weights are released for use with the official PoundNet codebase:
25
+
26
+ - Code: https://github.com/iamwangyabin/PoundNet
27
+ - arXiv: https://arxiv.org/abs/2408.08412
28
+ - Model weights: https://huggingface.co/nebula/PoundNet
29
+
30
+ ## Model Details
31
+
32
+ - **Architecture**: PoundNet
33
+ - **Backbone**: CLIP ViT-L/14
34
+ - **Task**: binary AI-generated image detection / deepfake detection
35
+ - **Output**: real/fake prediction scores through the official evaluation code
36
+ - **Training data**: ProGAN split from the ForenSynths-style training setup used by the official PoundNet implementation
37
+ - **Checkpoint format**: PyTorch Lightning `.ckpt`
38
+
39
+ The checkpoints in this repository are not standalone `transformers` checkpoints. They should be loaded with the official PoundNet repository and configuration files.
40
+
41
+ ## Released Checkpoints
42
+
43
+ | Checkpoint | File |
44
+ | --- | --- |
45
+ | `poundnet_ViTL_Progan_20240506_23_30_25` | `poundnet_ViTL_Progan_20240506_23_30_25/last.ckpt` |
46
+ | `poundnet_ViTL_Progan_20240804_21_16_47` | `poundnet_ViTL_Progan_20240804_21_16_47/last.ckpt` |
47
+ | `poundnet_ViTL_Progan_20240805_10_31_08` | `poundnet_ViTL_Progan_20240805_10_31_08/last.ckpt` |
48
+ | `poundnet_ViTL_Progan_20240805_12_09_21` | `poundnet_ViTL_Progan_20240805_12_09_21/last.ckpt` |
49
+
50
+ ## Installation
51
+
52
+ Clone the official repository and install dependencies:
53
+
54
+ ```bash
55
+ git clone https://github.com/iamwangyabin/PoundNet.git
56
+ cd PoundNet
57
+ pip install -r requirements.txt
58
+ ```
59
+
60
+ Install PyTorch separately according to your CUDA environment before installing the remaining dependencies.
61
+
62
+ ## Download Weights
63
+
64
+ ```bash
65
+ mkdir -p weights
66
+
67
+ wget -O ./weights/poundnet_ViTL_Progan_20240506_23_30_25.ckpt \
68
+ https://huggingface.co/nebula/PoundNet/resolve/main/poundnet_ViTL_Progan_20240506_23_30_25/last.ckpt
69
+
70
+ wget -O ./weights/poundnet_ViTL_Progan_20240804_21_16_47.ckpt \
71
+ https://huggingface.co/nebula/PoundNet/resolve/main/poundnet_ViTL_Progan_20240804_21_16_47/last.ckpt
72
+
73
+ wget -O ./weights/poundnet_ViTL_Progan_20240805_10_31_08.ckpt \
74
+ https://huggingface.co/nebula/PoundNet/resolve/main/poundnet_ViTL_Progan_20240805_10_31_08/last.ckpt
75
+
76
+ wget -O ./weights/poundnet_ViTL_Progan_20240805_12_09_21.ckpt \
77
+ https://huggingface.co/nebula/PoundNet/resolve/main/poundnet_ViTL_Progan_20240805_12_09_21/last.ckpt
78
+ ```
79
+
80
+ ## Evaluation
81
+
82
+ PoundNet expects benchmark datasets saved in Hugging Face Arrow format and loaded through `datasets.load_from_disk(...)`. See the official repository for the expected dataset layout and download helper.
83
+
84
+ Example evaluation command:
85
+
86
+ ```bash
87
+ python test.py --cfg cfgs/poundnet.yaml \
88
+ datasets.base_path=/path/to/DF-arrow
89
+ ```
90
+
91
+ The default evaluation config uses the ViT-L/14 PoundNet checkpoint and evaluates on multiple AI-generated image detection benchmarks through the official codebase.
92
+
93
+ ## Intended Uses
94
+
95
+ PoundNet is intended for academic research on:
96
+
97
+ - AI-generated image detection
98
+ - deepfake detection
99
+ - synthetic image forensics
100
+ - cross-generator and cross-dataset generalization
101
+ - prompt-learning adaptation of vision-language models
102
+
103
+ ## Limitations
104
+
105
+ These checkpoints are research artifacts and should not be treated as a complete production moderation or forensic system. Performance can vary under distribution shifts such as unseen generators, image editing pipelines, social media compression, resizing, screenshots, adversarial post-processing, or domain-specific content.
106
+
107
+ The released checkpoints require the official PoundNet code and configuration files. They are not directly loadable through `AutoModel.from_pretrained`.
108
+
109
+ ## Ethical Considerations
110
+
111
+ PoundNet is released to support research on synthetic media detection and trustworthy image forensics. Users should validate performance carefully before applying it to real-world moderation, legal, journalistic, or security workflows. Detection results should not be used as the sole evidence for high-stakes decisions.
112
+
113
+ ## Citation
114
+
115
+ If you use PoundNet, please cite:
116
+
117
+ ```bibtex
118
+ @article{wang2026pennywise,
119
+ title = {Penny-Wise and Pound-Foolish in AI-Generated Image Detection},
120
+ author = {Wang, Yabin and Huang, Zhiwu and Su, Zhou and Prugel-Bennett, Adam and Hong, Xiaopeng},
121
+ journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
122
+ pages = {1--14},
123
+ year = {2026},
124
+ doi = {10.1109/TPAMI.2026.3664388}
125
+ }
126
+ ```
127
+
128
+ ## Links
129
+
130
+ - Code: https://github.com/iamwangyabin/PoundNet
131
+ - arXiv: https://arxiv.org/abs/2408.08412
132
+ - Weights: https://huggingface.co/nebula/PoundNet