Upload DeepSafe model weights backup (NPR, UniversalFakeDetect, CrossEfficientViT, meta-learner)
Browse files- README.md +66 -0
- cross_efficient_vit/cross_efficient_vit.pth +3 -0
- cross_efficient_vit/efficient_vit.pth +3 -0
- meta_model_artifacts/deepsafe_meta_feature_columns.json +9 -0
- meta_model_artifacts/deepsafe_meta_imputer.joblib +3 -0
- meta_model_artifacts/deepsafe_meta_learner.joblib +3 -0
- meta_model_artifacts/deepsafe_meta_scaler.joblib +3 -0
- npr_deepfakedetection/NPR.pth +3 -0
- universalfakedetect/ViT-L-14.pt +3 -0
- universalfakedetect/fc_weights.pth +3 -0
README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- deepfake-detection
|
| 5 |
+
- image-forensics
|
| 6 |
+
- video-forensics
|
| 7 |
+
- ensemble
|
| 8 |
+
- pytorch
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# DeepSafe Model Weights
|
| 12 |
+
|
| 13 |
+
Backup model weights for the [DeepSafe](https://github.com/siddharthksah/DeepSafe) deepfake detection platform. These weights are mirrored here to ensure availability in case the original sources become unavailable.
|
| 14 |
+
|
| 15 |
+
## Models Included
|
| 16 |
+
|
| 17 |
+
### Image Detection Models
|
| 18 |
+
|
| 19 |
+
| Model | File | Size | Original Source |
|
| 20 |
+
|-------|------|------|----------------|
|
| 21 |
+
| **NPR Deepfake Detection** | `npr_deepfakedetection/NPR.pth` | 5.6 MB | [chuangchuangtan/NPR-DeepfakeDetection](https://github.com/chuangchuangtan/NPR-DeepfakeDetection) |
|
| 22 |
+
| **UniversalFakeDetect (FC)** | `universalfakedetect/fc_weights.pth` | 4 KB | [WisconsinAIVision/UniversalFakeDetect](https://github.com/WisconsinAIVision/UniversalFakeDetect) |
|
| 23 |
+
| **CLIP ViT-L/14 Backbone** | `universalfakedetect/ViT-L-14.pt` | 890 MB | [OpenAI CLIP](https://github.com/openai/CLIP) |
|
| 24 |
+
|
| 25 |
+
### Video Detection Models
|
| 26 |
+
|
| 27 |
+
| Model | File | Size | Original Source |
|
| 28 |
+
|-------|------|------|----------------|
|
| 29 |
+
| **Cross-Efficient ViT** | `cross_efficient_vit/cross_efficient_vit.pth` | 388 MB | [davide-coccomini/Combining-EfficientNet-and-Vision-Transformers-for-Video-Deepfake-Detection](https://github.com/davide-coccomini/Combining-EfficientNet-and-Vision-Transformers-for-Video-Deepfake-Detection) |
|
| 30 |
+
| **Efficient ViT** | `cross_efficient_vit/efficient_vit.pth` | 418 MB | Same as above |
|
| 31 |
+
|
| 32 |
+
### Meta-Learner (Ensemble)
|
| 33 |
+
|
| 34 |
+
| File | Size | Description |
|
| 35 |
+
|------|------|-------------|
|
| 36 |
+
| `meta_model_artifacts/deepsafe_meta_learner.joblib` | 569 KB | Trained stacking ensemble classifier |
|
| 37 |
+
| `meta_model_artifacts/deepsafe_meta_scaler.joblib` | 767 B | Feature scaler |
|
| 38 |
+
| `meta_model_artifacts/deepsafe_meta_imputer.joblib` | 975 B | Missing value imputer |
|
| 39 |
+
| `meta_model_artifacts/deepsafe_meta_feature_columns.json` | 215 B | Feature column definitions |
|
| 40 |
+
|
| 41 |
+
## Credits
|
| 42 |
+
|
| 43 |
+
All model weights are the work of their respective original authors. DeepSafe mirrors them here strictly as a backup to prevent broken builds if upstream sources change. Full credit goes to:
|
| 44 |
+
|
| 45 |
+
- **NPR Deepfake Detection**: Chuangchuang Tan et al. - [Paper](https://arxiv.org/abs/2310.14036) | [GitHub](https://github.com/chuangchuangtan/NPR-DeepfakeDetection)
|
| 46 |
+
- **UniversalFakeDetect**: Utkarsh Ojha, Yuheng Li, Yong Jae Lee - [Paper](https://arxiv.org/abs/2302.10174) | [GitHub](https://github.com/WisconsinAIVision/UniversalFakeDetect)
|
| 47 |
+
- **CLIP ViT-L/14**: Alec Radford et al. (OpenAI) - [Paper](https://arxiv.org/abs/2103.00020) | [GitHub](https://github.com/openai/CLIP)
|
| 48 |
+
- **Cross-Efficient ViT**: Davide Coccomini et al. - [Paper](https://arxiv.org/abs/2107.02612) | [GitHub](https://github.com/davide-coccomini/Combining-EfficientNet-and-Vision-Transformers-for-Video-Deepfake-Detection)
|
| 49 |
+
|
| 50 |
+
## Usage
|
| 51 |
+
|
| 52 |
+
These weights are used by DeepSafe's Docker-based microservices. See the [DeepSafe README](https://github.com/siddharthksah/DeepSafe) for setup instructions.
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
from huggingface_hub import hf_hub_download
|
| 56 |
+
|
| 57 |
+
# Download a specific weight file
|
| 58 |
+
path = hf_hub_download(
|
| 59 |
+
repo_id="siddharthksah/DeepSafe-weights",
|
| 60 |
+
filename="npr_deepfakedetection/NPR.pth"
|
| 61 |
+
)
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## License
|
| 65 |
+
|
| 66 |
+
MIT License (for the DeepSafe platform). Individual model weights retain their original licenses from their respective authors.
|
cross_efficient_vit/cross_efficient_vit.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62fbc612b1329dac9a3a7faca751fe6d28962245602474e0abfc3079d73bd25
|
| 3 |
+
size 406353519
|
cross_efficient_vit/efficient_vit.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20fcf03b3c8095c0b338cfd0c9f2cbfa29861cfdb66f328b7e0950db4201d324
|
| 3 |
+
size 438131441
|
meta_model_artifacts/deepsafe_meta_feature_columns.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"npr_deepfakedetection_prob",
|
| 3 |
+
"spsl_deepfake_detection_prob",
|
| 4 |
+
"trufor_prob",
|
| 5 |
+
"ucf_deepfake_detection_prob",
|
| 6 |
+
"universalfakedetect_prob",
|
| 7 |
+
"wavelet_clip_detection_prob",
|
| 8 |
+
"yermandy_clip_detection_prob"
|
| 9 |
+
]
|
meta_model_artifacts/deepsafe_meta_imputer.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:517bf8f1b9f66d048ac2064e9c7d1b89bd984c5004d8dc8219c2687188fdca31
|
| 3 |
+
size 975
|
meta_model_artifacts/deepsafe_meta_learner.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9834b10ee1683ce9a90c5a008b2a1e58e46146003c723a068785c0fc1e0d315a
|
| 3 |
+
size 581936
|
meta_model_artifacts/deepsafe_meta_scaler.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f7352c87792c23723810b5a6b628338fa306e06450f9c9b3acbe8cafea89374
|
| 3 |
+
size 767
|
npr_deepfakedetection/NPR.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b67a91555ce786a6d0463ff0cb2b0b874d1c3f971b0e3febd2ae5618a80f7e8a
|
| 3 |
+
size 5842385
|
universalfakedetect/ViT-L-14.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8cca3fd41ae0c99ba7e8951adf17d267cdb84cd88be6f7c2e0eca1737a03836
|
| 3 |
+
size 932768134
|
universalfakedetect/fc_weights.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:477100745713bcc957beb2b40859536859b6483fd6301b3b9293151b194c7847
|
| 3 |
+
size 4083
|