Views
No views yet
1 device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
2
3 config = AutoConfig.from_pretrained("abhishtagatya/wav2vec2-base-960h-itw-deepfake")
4 feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained("abhishtagatya/wav2vec2-base-960h-itw-deepfake")
5
6 model = Wav2Vec2ForSequenceClassification.from_pretrained("abhishtagatya/wav2vec2-base-960h-itw-deepfake", config=config).to(device)
7
8 # Your Logic Here| Training Loss | Epoch | Step | Validation Loss | Accuracy | FAR | FRR | EER |
|---|---|---|---|---|---|---|---|
| 0.6363 | 0.39 | 2500 | 0.4678 | 0.8652 | 0.0178 | 0.3326 | 0.1752 |
| 0.2896 | 0.79 | 5000 | 0.1145 | 0.9744 | 0.0170 | 0.0402 | 0.0286 |
| 0.1554 | 1.18 | 7500 | 0.1024 | 0.9797 | 0.0100 | 0.0377 | 0.0238 |
| 0.1327 | 1.57 | 10000 | 0.0945 | 0.9825 | 0.0070 | 0.0351 | 0.0211 |
| 0.13 | 1.97 | 12500 | 0.0917 | 0.9835 | 0.0068 | 0.0330 | 0.0199 |