Spaces:
Runtime error
Runtime error
Upload 6 files
Browse files
trained_models/config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ViTForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"dtype": "float32",
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.0,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "fake",
|
| 13 |
+
"1": "real"
|
| 14 |
+
},
|
| 15 |
+
"image_size": 224,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"fake": "0",
|
| 20 |
+
"real": "1"
|
| 21 |
+
},
|
| 22 |
+
"layer_norm_eps": 1e-12,
|
| 23 |
+
"model_type": "vit",
|
| 24 |
+
"num_attention_heads": 12,
|
| 25 |
+
"num_channels": 3,
|
| 26 |
+
"num_hidden_layers": 12,
|
| 27 |
+
"patch_size": 16,
|
| 28 |
+
"pooler_act": "tanh",
|
| 29 |
+
"pooler_output_size": 768,
|
| 30 |
+
"problem_type": "single_label_classification",
|
| 31 |
+
"qkv_bias": true,
|
| 32 |
+
"transformers_version": "5.0.0",
|
| 33 |
+
"use_cache": false
|
| 34 |
+
}
|
trained_models/deepfake_densenet121_threshold.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"threshold": 0.7596627473831177,
|
| 3 |
+
"label_mapping": {
|
| 4 |
+
"fake": 0,
|
| 5 |
+
"real": 1
|
| 6 |
+
},
|
| 7 |
+
"image_size": 224,
|
| 8 |
+
"score_meaning": "score >= threshold predicts real; score < threshold predicts fake"
|
| 9 |
+
}
|
trained_models/densenet121_faces.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd7320650302fca5588b497daec135dbec4eeca3c4e2030567f105914c013fd3
|
| 3 |
+
size 29474603
|
trained_models/densenet121_faces_meta.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"threshold": 0.7596627473831177,
|
| 3 |
+
"image_size": 224,
|
| 4 |
+
"label_mapping": {
|
| 5 |
+
"fake": 0,
|
| 6 |
+
"real": 1
|
| 7 |
+
},
|
| 8 |
+
"score_meaning": "score >= threshold predicts real; score < threshold predicts fake",
|
| 9 |
+
"normalize_mean": [
|
| 10 |
+
0.485,
|
| 11 |
+
0.456,
|
| 12 |
+
0.406
|
| 13 |
+
],
|
| 14 |
+
"normalize_std": [
|
| 15 |
+
0.229,
|
| 16 |
+
0.224,
|
| 17 |
+
0.225
|
| 18 |
+
],
|
| 19 |
+
"source_keras": "deepfake_densenet121_high_acc.keras",
|
| 20 |
+
"architecture": "DenseNet121 + GlobalAvgPool + Linear(1024,256)+ReLU+BN+Dropout(0.3)+Linear(256,1)+Sigmoid"
|
| 21 |
+
}
|
trained_models/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba81c341754d4bff4063b244e9aedececbd5298598c5cc954228b519e32c5f2c
|
| 3 |
+
size 343223968
|
trained_models/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20e4abfdaf3550867003b25ade080870f7e9f67ef5a154661d5c8a2b28047ef2
|
| 3 |
+
size 5201
|