metadata
base_model:
- dima806/deepfake_vs_real_image_detection
DeepDefend - Deepfake Analyzer v1
This is a PyTorch model trained to analyze and detect deepfake videos based on cropped face images.
π§ Model Details
- Architecture: ViTBinary (Vision Transformer)
- Input Size: 224Γ224
- Framework: PyTorch
- Validation Accuracy: 91.33%
- Trained on: Deepfake Detection Dataset (cropped faces)
π Files in this repository
pytorch_model.binβ Model weightsconfig.jsonβ Model configuration detailsREADME.mdβ This file
π How to Use
from huggingface_hub import hf_hub_download
import torch
from your_model_file import DeepfakeDetector # replace with your model class
# Download weights from Hugging Face Hub
model_path = hf_hub_download(repo_id="rushild25/DeepDefend", filename="pytorch_model.bin")
# Initialize model and load weights
model = DeepfakeDetector()
model.load_state_dict(torch.load(model_path, map_location="cpu"))
model.eval()
π€ Author
Uploaded by rushild25