Upload 3 files
Browse files- config.json +61 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Nahrawy/AIorNot",
|
3 |
+
"architectures": [
|
4 |
+
"SwinForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"depths": [
|
8 |
+
2,
|
9 |
+
2,
|
10 |
+
6,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.1,
|
14 |
+
"embed_dim": 96,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 768,
|
19 |
+
"id2label": {
|
20 |
+
"0": "real",
|
21 |
+
"1": "ai"
|
22 |
+
},
|
23 |
+
"image_size": 224,
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"label2id": {
|
26 |
+
"ai": 1,
|
27 |
+
"real": 0
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-05,
|
30 |
+
"mlp_ratio": 4.0,
|
31 |
+
"model_type": "swin",
|
32 |
+
"num_channels": 3,
|
33 |
+
"num_heads": [
|
34 |
+
3,
|
35 |
+
6,
|
36 |
+
12,
|
37 |
+
24
|
38 |
+
],
|
39 |
+
"num_layers": 4,
|
40 |
+
"out_features": [
|
41 |
+
"stage4"
|
42 |
+
],
|
43 |
+
"out_indices": [
|
44 |
+
4
|
45 |
+
],
|
46 |
+
"patch_size": 4,
|
47 |
+
"path_norm": true,
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"qkv_bias": true,
|
50 |
+
"stage_names": [
|
51 |
+
"stem",
|
52 |
+
"stage1",
|
53 |
+
"stage2",
|
54 |
+
"stage3",
|
55 |
+
"stage4"
|
56 |
+
],
|
57 |
+
"torch_dtype": "float32",
|
58 |
+
"transformers_version": "4.38.2",
|
59 |
+
"use_absolute_embeddings": false,
|
60 |
+
"window_size": 7
|
61 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb78c9ae89c32870b46111b53905e899fc4129125be71fb1764ebc98bef8759e
|
3 |
+
size 110342832
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.485,
|
7 |
+
0.456,
|
8 |
+
0.406
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTFeatureExtractor",
|
11 |
+
"image_std": [
|
12 |
+
0.229,
|
13 |
+
0.224,
|
14 |
+
0.225
|
15 |
+
],
|
16 |
+
"resample": 3,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|