Downloads · 30 days
18
100% of all-time downloads
iron04/deepfake_efficientnet
deepfake_efficientnet is a video classification model from iron04. Use it for the video classification task on the model card, and read the license before you ship it in a product. It is set up for pytorch.
Lightweight video-level real/fake classifier using ImageNet-pretrained EfficientNet-B0.
Downloads · 30 days
18
100% of all-time downloads
All-time downloads
18
Public
Repo size
16.3 MB
Likes
0
Public
Click a slice to open those files.
.bin16.3 MB · 100%
From the Hugging Face model README
Lightweight video-level real/fake classifier using ImageNet-pretrained EfficientNet-B0.
REAL, FAKESee preprocessing.py for the exact preprocessing implementation.
pytorch_model.bin - trained weightsconfig.json - model and preprocessing metadatapreprocessing.py - video preprocessingrequirements.txt - runtime dependenciesREADME.md - model cardimport json
import torch
import torch.nn as nn
from torchvision.models import efficientnet_b0
with open("config.json") as f:
config = json.load(f)
model = efficientnet_b0(weights=None)
model.classifier[1] = nn.Linear(
model.classifier[1].in_features,
config["num_classes"]
)
model.load_state_dict(
torch.load("pytorch_model.bin", map_location="cpu")
)
model.eval()
This is a PyTorch/torchvision model repository, not a native Transformers model.