DeepDefend / README.md
rushild25's picture
Update README.md
efc2046 verified
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 weights
  • config.json β€” Model configuration details
  • README.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