Downloads · 30 days
0
aitf-komdigi/KomdigiITS-David-DFK-AIDeepFakeClassification
KomdigiITS-David-DFK-AIDeepFakeClassification is a video classification model from aitf-komdigi. 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. The card lists the license as other.
Model weights for DAViD, a deepfake & AI-generated video/image detector.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.pth1.6 GB · 100%
From the Hugging Face model README
Model weights for DAViD, a deepfake & AI-generated video/image detector.
This repo hosts two checkpoints:
| File | Size | Description |
|---|---|---|
k400_clip_complete_finetuned_30_epochs.pth | ~1.6 GB | ViFi-CLIP (ViT-B/16) image encoder, fine-tuned on Kinetics-400 for 30 epochs |
best_detector_model.pt | ~3 MB | MLP classification head (dense → dense1 → dense2), trained on the DAViD dataset + CDDB |
real, deepfake, ai_gen. It was trained on a mix
of the DAViD video dataset and CDDB (an image-based deepfake benchmark),
so it supports both video and single-image input.The DAViD Space downloads these at Docker build time. They were previously on Google Drive, but Drive throttles datacenter IPs and broke the Space build. Serving them from the HF Hub is reliable from HF's build infrastructure.
The model definitions (model.py, encoder.py, and the clip/ package) are
not in this weights repo — they live in the training repo
aitf-its-tim3-dfk/david
(branch feat-cddb). Clone it first and run from inside it:
git clone -b feat-cddb https://github.com/aitf-its-tim3-dfk/david
cd david
pip install -r requirements.txt
This is what makes from model import ... and from encoder import ... below work.
from huggingface_hub import hf_hub_download
REPO = "aitf-its-tim3-dfk/david-encoder"
encoder_ckpt = hf_hub_download(REPO, "k400_clip_complete_finetuned_30_epochs.pth")
classifier_ckpt = hf_hub_download(REPO, "best_detector_model.pt")
import torch
from encoder import load_feature_extractor # from the cloned GitHub repo
from model import ClassificationHead # from the cloned GitHub repo
feature_extractor = load_feature_extractor(
arch="ViT-B/16",
class_names=("real", "deepfake", "ai_gen"),
checkpoint_path=encoder_ckpt,
).eval()
classifier = ClassificationHead(input_dim=512, num_classes=3)
classifier.load_state_dict(torch.load(classifier_ckpt, map_location="cpu", weights_only=False))
classifier.eval()
# feats = feature_extractor.image_encoder(frames) # (N, 512)
# logits = classifier(feats.mean(dim=0, keepdim=True)) # (1, 3)
feat-cddb).aitf-its-tim3-dfk/Davidaitf-its-tim3-dfk/david (branch feat-cddb)Set the appropriate license for these weights (currently other). The CLIP
backbone, Kinetics-400, and CDDB carry their own upstream licenses/terms.