Spaces:
Running
Running
AMontiB commited on
Commit Β·
84d58e0
1
Parent(s): 261c3be
update README
Browse files- README.md +25 -16
- README_HF.md +25 -16
README.md
CHANGED
|
@@ -12,21 +12,22 @@ license: mit
|
|
| 12 |
|
| 13 |
# Deepfake Detection Space (Open-Source Demonstrator)
|
| 14 |
|
| 15 |
-
Welcome to the Truebees Deepfake Detection Space! This Space provides
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
## π― Goal and Context
|
| 20 |
|
| 21 |
-
This demonstrator is designed as an
|
| 22 |
|
| 23 |
-
**β οΈ Important
|
| 24 |
-
* **
|
| 25 |
-
* **
|
| 26 |
-
* **
|
| 27 |
|
| 28 |
## π οΈ Available Detectors
|
| 29 |
|
|
|
|
| 30 |
* **R50_TF**: ResNet-50 based detector trained on the TrueFake dataset.
|
| 31 |
* **R50_nodown**: ResNet-50 without downsampling operations.
|
| 32 |
* **CLIP-D**: CLIP-based deepfake detector.
|
|
@@ -36,23 +37,30 @@ This demonstrator is designed as an **educational and open-source contribution**
|
|
| 36 |
## π Usage Guide
|
| 37 |
|
| 38 |
1. **Upload an image**: Choose an image you want to analyze.
|
| 39 |
-
2. **Select a detector**: Choose one of the open-source models from the dropdown menu.
|
| 40 |
3. **Detect**: Click the "Detect" button to generate the prediction.
|
| 41 |
|
| 42 |
-
**Understanding the
|
| 43 |
-
* **Prediction**:
|
| 44 |
-
* **Confidence**: The model
|
| 45 |
-
* **Elapsed Time**:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## π§ Training Data Overview
|
| 48 |
|
| 49 |
-
All open-source models featured in this Space have been pretrained
|
| 50 |
-
* **Fake Images:** Generated using
|
| 51 |
* **Real Images:** Sourced from the FFHQ Dataset and the FORLAB Dataset.
|
| 52 |
|
| 53 |
## π References
|
| 54 |
|
| 55 |
-
For technical details,
|
|
|
|
|
|
|
| 56 |
|
| 57 |
## π€ Acknowledgment
|
| 58 |
|
|
@@ -61,4 +69,5 @@ This work has been funded by the European Union under Horizon Europe Grant Agree
|
|
| 61 |
|
| 62 |
## β³ Note
|
| 63 |
|
| 64 |
-
β οΈ Due to file size limitations, model weights need to be downloaded automatically
|
|
|
|
|
|
| 12 |
|
| 13 |
# Deepfake Detection Space (Open-Source Demonstrator)
|
| 14 |
|
| 15 |
+
Welcome to the Truebees Deepfake Detection Space! This Space provides an **educational, open-source demonstrator** collecting a series of baseline state-of-the-art methods for deepfake detection, allowing for free and unlimited use.
|
| 16 |
|
| 17 |
+
If you want to train the detectors in this Space yourself, check out our [GitHub repository](https://github.com/truebees-ai/Image-Deepfake-Detectors-Public-Library).
|
| 18 |
|
| 19 |
## π― Goal and Context
|
| 20 |
|
| 21 |
+
This demonstrator is designed as an open-source contribution to the community. We want to allow users, researchers, and developers to experiment with baseline forensic models for free, familiarize themselves with AI detection tools, and understand both their capabilities and their limitations.
|
| 22 |
|
| 23 |
+
**β οΈ Important:**
|
| 24 |
+
* **Not Proprietary Software:** This tool showcases open-source detectors. It **does not** reflect the performance, robustness, or accuracy of Truebees' commercial detection methods. Want to give it a try? check **[Truebees Website](https://www.truebees.eu)**.
|
| 25 |
+
* **Non-Social Training Data:** These models were trained on images not shared on social networks from the **[DeepShield dataset](https://zenodo.org/records/15648378)**. You may experience a drop in accuracy when testing highly compressed images downloaded from social media platforms or messaging apps (e.g., WhatsApp).
|
| 26 |
+
* **Expected Performance:** You can expect performance comparable to the results shown in [Dell'Anna et al. (2025)](https://arxiv.org/pdf/2504.20658).
|
| 27 |
|
| 28 |
## π οΈ Available Detectors
|
| 29 |
|
| 30 |
+
* **ALL**: Runs all available detectors sequentially. Produces a Weighted Majority Vote verdict based on confident predictions (> 0.6) and generates a Confidence Plot.
|
| 31 |
* **R50_TF**: ResNet-50 based detector trained on the TrueFake dataset.
|
| 32 |
* **R50_nodown**: ResNet-50 without downsampling operations.
|
| 33 |
* **CLIP-D**: CLIP-based deepfake detector.
|
|
|
|
| 37 |
## π Usage Guide
|
| 38 |
|
| 39 |
1. **Upload an image**: Choose an image you want to analyze.
|
| 40 |
+
2. **Select a detector**: Choose one of the open-source models (or "ALL") from the dropdown menu.
|
| 41 |
3. **Detect**: Click the "Detect" button to generate the prediction.
|
| 42 |
|
| 43 |
+
**Understanding the Results:**
|
| 44 |
+
* **Prediction**: Tells if an image is **Real** or **Fake**.
|
| 45 |
+
* **Confidence**: The confidence with which the model determines if the image is real or fake.
|
| 46 |
+
* **Elapsed Time**: The time the model needed to make the prediction (excluding preprocessing or model building).
|
| 47 |
+
|
| 48 |
+
**Understanding the Results produced by "ALL":**
|
| 49 |
+
* Produces a **Weighted Majority Vote** verdict (Real/Fake).
|
| 50 |
+
* Each model's vote is weighted by a fixed importance score based on empirical results from the **DeepShield dataset**, following this ranking: **CLIP-D > R50_TF > R50_nodown > P2G > NPR**. The weights are scaled so that their sum equals 1. Only confident predictions (> 0.6) are counted.
|
| 51 |
+
* Generates a **Confidence Plot** visualizing each model's score and a textual **Explanation** of the consensus. In the plot, **Green** bars indicate a **Real** prediction, while **Red** bars indicate a **Fake** prediction.
|
| 52 |
|
| 53 |
## π§ Training Data Overview
|
| 54 |
|
| 55 |
+
All open-source models featured in this Space have been pretrained using the **[DeepShield dataset](https://zenodo.org/records/15648378)**:
|
| 56 |
+
* **Fake Images:** Generated using StyleGAN 2 and Stable Diffusion XL.
|
| 57 |
* **Real Images:** Sourced from the FFHQ Dataset and the FORLAB Dataset.
|
| 58 |
|
| 59 |
## π References
|
| 60 |
|
| 61 |
+
For technical details, full code to train and test these models on your own dataset, and benchmarking data, please visit our [GitHub repository](https://github.com/truebees-ai/Image-Deepfake-Detectors-Public-Library).
|
| 62 |
+
|
| 63 |
+
1. Dell'Anna, S., Montibeller, A., & Boato, G. (2025). *TrueFake: A Real World Case Dataset of Last Generation Fake Images also Shared on Social Networks*. arXiv preprint arXiv:2504.20658.
|
| 64 |
|
| 65 |
## π€ Acknowledgment
|
| 66 |
|
|
|
|
| 69 |
|
| 70 |
## β³ Note
|
| 71 |
|
| 72 |
+
* β οΈ Due to file size limitations, model weights need to be downloaded automatically on first use. This may take a few moments.
|
| 73 |
+
* β οΈ To provide a free service, all models run on CPU. The detection process may take a few seconds, depending on the image size and the selected detector.
|
README_HF.md
CHANGED
|
@@ -12,21 +12,22 @@ license: mit
|
|
| 12 |
|
| 13 |
# Deepfake Detection Space (Open-Source Demonstrator)
|
| 14 |
|
| 15 |
-
Welcome to the Truebees Deepfake Detection Space! This Space provides
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
## π― Goal and Context
|
| 20 |
|
| 21 |
-
This demonstrator is designed as an
|
| 22 |
|
| 23 |
-
**β οΈ Important
|
| 24 |
-
* **
|
| 25 |
-
* **
|
| 26 |
-
* **
|
| 27 |
|
| 28 |
## π οΈ Available Detectors
|
| 29 |
|
|
|
|
| 30 |
* **R50_TF**: ResNet-50 based detector trained on the TrueFake dataset.
|
| 31 |
* **R50_nodown**: ResNet-50 without downsampling operations.
|
| 32 |
* **CLIP-D**: CLIP-based deepfake detector.
|
|
@@ -36,23 +37,30 @@ This demonstrator is designed as an **educational and open-source contribution**
|
|
| 36 |
## π Usage Guide
|
| 37 |
|
| 38 |
1. **Upload an image**: Choose an image you want to analyze.
|
| 39 |
-
2. **Select a detector**: Choose one of the open-source models from the dropdown menu.
|
| 40 |
3. **Detect**: Click the "Detect" button to generate the prediction.
|
| 41 |
|
| 42 |
-
**Understanding the
|
| 43 |
-
* **Prediction**:
|
| 44 |
-
* **Confidence**: The model
|
| 45 |
-
* **Elapsed Time**:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## π§ Training Data Overview
|
| 48 |
|
| 49 |
-
All open-source models featured in this Space have been pretrained
|
| 50 |
-
* **Fake Images:** Generated using
|
| 51 |
* **Real Images:** Sourced from the FFHQ Dataset and the FORLAB Dataset.
|
| 52 |
|
| 53 |
## π References
|
| 54 |
|
| 55 |
-
For technical details,
|
|
|
|
|
|
|
| 56 |
|
| 57 |
## π€ Acknowledgment
|
| 58 |
|
|
@@ -61,4 +69,5 @@ This work has been funded by the European Union under Horizon Europe Grant Agree
|
|
| 61 |
|
| 62 |
## β³ Note
|
| 63 |
|
| 64 |
-
β οΈ Due to file size limitations, model weights need to be downloaded automatically
|
|
|
|
|
|
| 12 |
|
| 13 |
# Deepfake Detection Space (Open-Source Demonstrator)
|
| 14 |
|
| 15 |
+
Welcome to the Truebees Deepfake Detection Space! This Space provides an **educational, open-source demonstrator** collecting a series of baseline state-of-the-art methods for deepfake detection, allowing for free and unlimited use.
|
| 16 |
|
| 17 |
+
If you want to train the detectors in this Space yourself, check out our [GitHub repository](https://github.com/truebees-ai/Image-Deepfake-Detectors-Public-Library).
|
| 18 |
|
| 19 |
## π― Goal and Context
|
| 20 |
|
| 21 |
+
This demonstrator is designed as an open-source contribution to the community. We want to allow users, researchers, and developers to experiment with baseline forensic models for free, familiarize themselves with AI detection tools, and understand both their capabilities and their limitations.
|
| 22 |
|
| 23 |
+
**β οΈ Important:**
|
| 24 |
+
* **Not Proprietary Software:** This tool showcases open-source detectors. It **does not** reflect the performance, robustness, or accuracy of Truebees' commercial detection methods. Want to give it a try? check **[Truebees Website](https://www.truebees.eu)**.
|
| 25 |
+
* **Non-Social Training Data:** These models were trained on images not shared on social networks from the **[DeepShield dataset](https://zenodo.org/records/15648378)**. You may experience a drop in accuracy when testing highly compressed images downloaded from social media platforms or messaging apps (e.g., WhatsApp).
|
| 26 |
+
* **Expected Performance:** You can expect performance comparable to the results shown in [Dell'Anna et al. (2025)](https://arxiv.org/pdf/2504.20658).
|
| 27 |
|
| 28 |
## π οΈ Available Detectors
|
| 29 |
|
| 30 |
+
* **ALL**: Runs all available detectors sequentially. Produces a Weighted Majority Vote verdict based on confident predictions (> 0.6) and generates a Confidence Plot.
|
| 31 |
* **R50_TF**: ResNet-50 based detector trained on the TrueFake dataset.
|
| 32 |
* **R50_nodown**: ResNet-50 without downsampling operations.
|
| 33 |
* **CLIP-D**: CLIP-based deepfake detector.
|
|
|
|
| 37 |
## π Usage Guide
|
| 38 |
|
| 39 |
1. **Upload an image**: Choose an image you want to analyze.
|
| 40 |
+
2. **Select a detector**: Choose one of the open-source models (or "ALL") from the dropdown menu.
|
| 41 |
3. **Detect**: Click the "Detect" button to generate the prediction.
|
| 42 |
|
| 43 |
+
**Understanding the Results:**
|
| 44 |
+
* **Prediction**: Tells if an image is **Real** or **Fake**.
|
| 45 |
+
* **Confidence**: The confidence with which the model determines if the image is real or fake.
|
| 46 |
+
* **Elapsed Time**: The time the model needed to make the prediction (excluding preprocessing or model building).
|
| 47 |
+
|
| 48 |
+
**Understanding the Results produced by "ALL":**
|
| 49 |
+
* Produces a **Weighted Majority Vote** verdict (Real/Fake).
|
| 50 |
+
* Each model's vote is weighted by a fixed importance score based on empirical results from the **DeepShield dataset**, following this ranking: **CLIP-D > R50_TF > R50_nodown > P2G > NPR**. The weights are scaled so that their sum equals 1. Only confident predictions (> 0.6) are counted.
|
| 51 |
+
* Generates a **Confidence Plot** visualizing each model's score and a textual **Explanation** of the consensus. In the plot, **Green** bars indicate a **Real** prediction, while **Red** bars indicate a **Fake** prediction.
|
| 52 |
|
| 53 |
## π§ Training Data Overview
|
| 54 |
|
| 55 |
+
All open-source models featured in this Space have been pretrained using the **[DeepShield dataset](https://zenodo.org/records/15648378)**:
|
| 56 |
+
* **Fake Images:** Generated using StyleGAN 2 and Stable Diffusion XL.
|
| 57 |
* **Real Images:** Sourced from the FFHQ Dataset and the FORLAB Dataset.
|
| 58 |
|
| 59 |
## π References
|
| 60 |
|
| 61 |
+
For technical details, full code to train and test these models on your own dataset, and benchmarking data, please visit our [GitHub repository](https://github.com/truebees-ai/Image-Deepfake-Detectors-Public-Library).
|
| 62 |
+
|
| 63 |
+
1. Dell'Anna, S., Montibeller, A., & Boato, G. (2025). *TrueFake: A Real World Case Dataset of Last Generation Fake Images also Shared on Social Networks*. arXiv preprint arXiv:2504.20658.
|
| 64 |
|
| 65 |
## π€ Acknowledgment
|
| 66 |
|
|
|
|
| 69 |
|
| 70 |
## β³ Note
|
| 71 |
|
| 72 |
+
* β οΈ Due to file size limitations, model weights need to be downloaded automatically on first use. This may take a few moments.
|
| 73 |
+
* β οΈ To provide a free service, all models run on CPU. The detection process may take a few seconds, depending on the image size and the selected detector.
|