Views
No views yet
pytorch_model.bin — Model weightsconfig.json — Model configuration detailsREADME.md — This file1from huggingface_hub import hf_hub_download
2import torch
3from your_model_file import DeepfakeDetector # replace with your model class
4
5# Download weights from Hugging Face Hub
6model_path = hf_hub_download(repo_id="rushild25/DeepDefend", filename="pytorch_model.bin")
7
8# Initialize model and load weights
9model = DeepfakeDetector()
10model.load_state_dict(torch.load(model_path, map_location="cpu"))
11model.eval()
12
13👤 Author
14Uploaded by rushild25