Views
No views yet
| Evaluation | Equal Error Rate (EER) |
|---|---|
| ASVspoof 2019 LA dev (seen attacks A01-A06) | 0.69% |
| ASVspoof 2019 LA eval (unseen attacks A07-A19) | 5.55% |
| ASVspoof 2021 LA eval (codec-degraded) | 9.09% |
| WaveFake (LJSpeech vocoders, mean) | 29.4% |
1import torch
2from huggingface_hub import hf_hub_download
3
4# Download the checkpoint
5ckpt_path = hf_hub_download(
6 repo_id="Sara1708/deepfake-audio-wav2vec2",
7 filename="stage2_best.pt",
8)
9
10# Load using the inference wrapper from the source repo
11from src.inference.predict import DeepfakeDetector
12detector = DeepfakeDetector(checkpoint_path=ckpt_path, device="cpu")
13result = detector.predict("path/to/audio.wav")
14print(result)