jian-0/GenVidBench
Updated β’ 2.01k β’ 13
Binary classifier trained to distinguish Real (0) videos from AI-generated (1) videos using frame-level spatial features (EfficientNet-B0) combined with temporal sequence modeling (Bidirectional GRU + learned Temporal Attention).
| File | Role | Description |
|---|---|---|
LUMINAR_Unified_Video_Model.pt |
Primary Checkpoint Binary | Full LUMINAR V4 checkpoint containing model_state, lineage, input_config, and validation_metrics. |
pytorch_model.pt |
Standard Framework Alias | Clean PyTorch state_dict export of model_state for standard load_state_dict() loaders. |
model.py |
Architecture & Loader | LuminarVideoModel PyTorch definition and load_luminar_model() helper. |
config.json |
Architecture Config | Hyperparameters, input normalization constraints, and recorded metrics. |
label_map.json |
Target Class Schema | Index-to-label mapping (0: "Real", 1: "AI-generated"). |
torchvision.models.efficientnet_b0 (1280-dim pooled frame embedding)GRU (hidden_size=256, output 512-dim)LayerNorm(512) -> Dropout(0.4) -> Linear(512, 256) -> ReLU -> Dropout(0.3) -> Linear(256, 2)6,610,640 (376 state tensors)(batch, 16, 3, 224, 224) RGB frames normalized with ImageNet mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225].0.9984).141,289 total clips; 0 source-group overlap between splits):127,161 videos (30,079 Real, 97,082 AI-generated)14,128 videos (3,361 Real, 10,767 AI-generated)AdamW (backbone_lr=1e-5, head_lr=1e-4), weighted CrossEntropyLoss, bfloat16 mixed precision, batch_size=8, best checkpoint at Epoch 9.n = 14,128)
| Metric | Value |
|---|---|
| Validation Loss | 0.6944 |
| Accuracy | 88.22% (0.8822) |
| Balanced Accuracy | 90.92% (0.9092) |
| Precision (AI-generated) | 0.9859 |
| Recall (AI-generated) | 0.8577 |
| F1 Score (AI-generated) | 0.9174 |
| ROC-AUC | 0.9765 |
| Average Precision | 0.9926 |
| Brier Score | 0.1078 |
Note on Evaluation Scope: These metrics are computed on the held-out GenVidBench Pair 1 + Pair 2 validation partition. They do not guarantee generalization to unseen video generators or uncurated real-world social media videos without independent external benchmarking.
import torch
from huggingface_hub import hf_hub_download
from model import load_luminar_model
ckpt_path = hf_hub_download(
repo_id="Adi-19/luminar-video-efficientnet-b0-unified",
filename="LUMINAR_Unified_Video_Model.pt",
)
model, meta = load_luminar_model(ckpt_path, device="cpu")
# Example: batch of 1 video, 16 RGB frames resized & ImageNet-normalized to 224x224
dummy_video = torch.randn(1, 16, 3, 224, 224)
with torch.no_grad():
logits = model(dummy_video)
probs = torch.softmax(logits, dim=-1)
pred_id = int(probs.argmax(dim=-1).item())
print("Prediction:", meta["input_config"]["classes"][str(pred_id)], probs.tolist())
Distributed under CC BY-NC 4.0 for non-commercial academic and research use, subject to the upstream terms of the GenVidBench training subsets.