imdaisylee
commited on
Commit
•
39231e6
1
Parent(s):
f5490a2
Upload SwinForImageClassification
Browse files- config.json +16 -20
- model.safetensors +2 -2
config.json
CHANGED
@@ -1,40 +1,41 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.0,
|
7 |
"depths": [
|
8 |
2,
|
9 |
2,
|
10 |
-
|
11 |
2
|
12 |
],
|
13 |
"drop_path_rate": 0.1,
|
14 |
-
"embed_dim":
|
15 |
"encoder_stride": 32,
|
16 |
"hidden_act": "gelu",
|
17 |
"hidden_dropout_prob": 0.0,
|
18 |
-
"hidden_size":
|
19 |
"id2label": {
|
20 |
-
"0": "
|
21 |
-
"1": "
|
22 |
},
|
23 |
-
"image_size":
|
24 |
"initializer_range": 0.02,
|
25 |
"label2id": {
|
26 |
-
"
|
27 |
-
"
|
28 |
},
|
29 |
"layer_norm_eps": 1e-05,
|
|
|
30 |
"mlp_ratio": 4.0,
|
31 |
-
"model_type": "
|
32 |
"num_channels": 3,
|
33 |
"num_heads": [
|
|
|
34 |
6,
|
35 |
12,
|
36 |
-
24
|
37 |
-
48
|
38 |
],
|
39 |
"num_layers": 4,
|
40 |
"out_features": [
|
@@ -43,14 +44,9 @@
|
|
43 |
"out_indices": [
|
44 |
4
|
45 |
],
|
|
|
46 |
"patch_size": 4,
|
47 |
"path_norm": true,
|
48 |
-
"pretrained_window_sizes": [
|
49 |
-
12,
|
50 |
-
12,
|
51 |
-
12,
|
52 |
-
6
|
53 |
-
],
|
54 |
"problem_type": "single_label_classification",
|
55 |
"qkv_bias": true,
|
56 |
"stage_names": [
|
@@ -63,5 +59,5 @@
|
|
63 |
"torch_dtype": "float32",
|
64 |
"transformers_version": "4.41.1",
|
65 |
"use_absolute_embeddings": false,
|
66 |
-
"window_size":
|
67 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "NehaBardeDUKE/autotrain-ai-generated-image-classification-3250490787",
|
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": "Artificial",
|
21 |
+
"1": "Human"
|
22 |
},
|
23 |
+
"image_size": 224,
|
24 |
"initializer_range": 0.02,
|
25 |
"label2id": {
|
26 |
+
"Artificial": "0",
|
27 |
+
"Human": "1"
|
28 |
},
|
29 |
"layer_norm_eps": 1e-05,
|
30 |
+
"max_length": 128,
|
31 |
"mlp_ratio": 4.0,
|
32 |
+
"model_type": "swin",
|
33 |
"num_channels": 3,
|
34 |
"num_heads": [
|
35 |
+
3,
|
36 |
6,
|
37 |
12,
|
38 |
+
24
|
|
|
39 |
],
|
40 |
"num_layers": 4,
|
41 |
"out_features": [
|
|
|
44 |
"out_indices": [
|
45 |
4
|
46 |
],
|
47 |
+
"padding": "max_length",
|
48 |
"patch_size": 4,
|
49 |
"path_norm": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
"problem_type": "single_label_classification",
|
51 |
"qkv_bias": true,
|
52 |
"stage_names": [
|
|
|
59 |
"torch_dtype": "float32",
|
60 |
"transformers_version": "4.41.1",
|
61 |
"use_absolute_embeddings": false,
|
62 |
+
"window_size": 7
|
63 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71417e2d18a1436c426976cfd4e39b3fd7099284f9c4979e68a4c5626431da04
|
3 |
+
size 110342832
|