Image Classification
Transformers
Safetensors
swin-frequency-hybrid
deepfake-detection
synthetic-image-detection
swin-transformer
frequency-analysis
Instructions to use SadraCoding/SDXL-Deepfake-Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SadraCoding/SDXL-Deepfake-Detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SadraCoding/SDXL-Deepfake-Detector") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import SwinFrequencyHybridDetector model = SwinFrequencyHybridDetector.from_pretrained("SadraCoding/SDXL-Deepfake-Detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -52,7 +52,7 @@ import os
|
|
| 52 |
|
| 53 |
def main():
|
| 54 |
parser = argparse.ArgumentParser(
|
| 55 |
-
description="Classify an image as '
|
| 56 |
)
|
| 57 |
parser.add_argument("--image", type=str, required=True, help="Path to the input image file")
|
| 58 |
args = parser.parse_args()
|
|
|
|
| 52 |
|
| 53 |
def main():
|
| 54 |
parser = argparse.ArgumentParser(
|
| 55 |
+
description="Classify an image as 'artificial' or 'human' using the SDXL-Deepfake-Detector."
|
| 56 |
)
|
| 57 |
parser.add_argument("--image", type=str, required=True, help="Path to the input image file")
|
| 58 |
args = parser.parse_args()
|