Skip to content

v0.1.0: 1st-gen western data

Choose a tag to compare

@SEOYUNJE SEOYUNJE released this 03 Feb 03:22
· 640 commits to main since this release
8e16d14

πŸ›‘οΈ 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 deepguard to 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++"