v0.1.0: 1st-gen western data
π‘οΈ DeepGuard v0.1.0 β 1st-gen Western Release
Deployment-ready DeepFake detection weights built for high-traffic inference.
The 1st generation is trained on Western datasets (Celeb-DF-v2, FaceForensics++).
π¦ Available Weights
| Architecture | Variant | celeb_df_v2 |
ff++ |
|---|---|---|---|
| MS-EffViT | b0 |
β | β |
| MS-EffViT | b5 |
β | β |
| MS-EffGCViT | b0 |
β | β |
| MS-EffGCViT | b5 |
β | β |
- b0 β Fast variant (lightweight, CPU-friendly)
- b5 β Pro variant (high precision)
π Usage
Option A. timm API
Clone the repo and import
deepguardto register the models into the timm registry.
!git clone https://github.com/HanMoonSub/DeepGuard.git
%cd DeepGuard
import timm
import deepguard # registers models into timm
model = timm.create_model("ms_eff_gcvit_b0", pretrained=True, dataset="celeb_df_v2")
model = timm.create_model("ms_eff_gcvit_b5", pretrained=True, dataset="ff++")Option B. Direct deepguard import β¨ (recommended)
Install the package and import the model builders directly β no timm dependency required.
!pip install deepguard
# latest dev build: pip install -U git+https://github.com/HanMoonSub/DeepGuard.git
from deepguard import ms_eff_gcvit_b0, ms_eff_gcvit_b5
model = ms_eff_gcvit_b0(pretrained=True, dataset="celeb_df_v2")
model = ms_eff_gcvit_b5(pretrained=True, dataset="ff++")π§ Arguments
| Arg | Type | Options | Description |
|---|---|---|---|
pretrained |
bool |
True / False |
Load pretrained weights |
dataset |
str |
"celeb_df_v2", "ff++" |
Training dataset of the weights to load |
π Full Model List
from deepguard import (
ms_eff_vit_b0,
ms_eff_vit_b5,
ms_eff_gcvit_b0,
ms_eff_gcvit_b5,
)
# each supports: dataset="celeb_df_v2" | "ff++"