Image Classification
Transformers
Safetensors
swin-frequency-hybrid
deepfake-detection
synthetic-image-detection
swin-transformer
frequency-analysis
Run this model with HF Jobs
Run SadraCoding/SDXL-Deepfake-Detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/SadraCoding/SDXL-Deepfake-Detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SadraCoding/SDXL-Deepfake-Detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 files51 unmodified lines5253545556575851 unmodified linesdef main():parser = argparse.ArgumentParser(description="Classify an image as 'Real' or 'Deepfake' using the SDXL-Deepfake-Detector.")parser.add_argument("--image", type=str, required=True, help="Path to the input image file")args = parser.parse_args()51 unmodified lines5253545556575851 unmodified linesdef main():parser = argparse.ArgumentParser(description="Classify an image as 'artificial' or 'human' using the SDXL-Deepfake-Detector.")parser.add_argument("--image", type=str, required=True, help="Path to the input image file")args = parser.parse_args()
README.md+1-1