The EfficientNet-B7 checkpoint from Selim Seferbekov's DFDC solution, exported for Facetorch.
This repository contains immutable model artifacts used by
Facetorch. Use the packaged Facetorch manifest to select a revision and artifact; do not treat mutable
main or older unlisted files as a release contract.
Preprocessing: Resize to 380 by 380 and apply ImageNet mean [0.485, 0.456, 0.406] and standard deviation [0.229, 0.224, 0.225].
Facetorch v1 supports the Torch 2.6 and 2.11 cohort files listed in its manifest. The legacy TorchScript object is CPU-only and requires the explicit legacy opt-in. Files from unsupported cohorts are not part of the v1 release contract.
1import torch
2from huggingface_hub import hf_hub_download
3from facetorch.artifacts import get_model_manifest
4
5MODEL_ID = "deepfake-efficientnet-b7"
6device = "cuda" if torch.cuda.is_available() else "cpu"
7artifact = get_model_manifest().candidates(
8 MODEL_ID,
9 torch_version=torch.__version__,
10 device=device,
11 allow_legacy_models=False,
12)[0]
13path = hf_hub_download(
14 repo_id=artifact.repo_id,
15 revision=artifact.revision,
16 filename=artifact.filename,
17)
18model = torch.export.load(path).module().to(device).eval()
19example = torch.randn(1, 3, 380, 380, device=device)
20with torch.inference_mode():
21 output = model(example)
The random tensor above is only a loading smoke test. Use Facetorch's documented preprocessing for meaningful inference.
Result: The named checkpoint uniquely matched all 1,202 model tensors exactly.
The repository owner approved the mapping and redistribution record on 2026-08-23. Under the recorded policy, an author-published checkpoint in a permissively licensed repository with no separate checkpoint terms uses that repository license. MIT and Apache-2.0 have not been converted or treated as interchangeable. See
LICENSE,
THIRD_PARTY_NOTICES.md, and Facetorch's
facetorch/models/governance.json.