yhay360
commited on
Commit
·
73493c1
1
Parent(s):
d40b76a
fix: add correct ViT config (and handler)
Browse files- config.json +26 -19
config.json
CHANGED
@@ -1,29 +1,36 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
-
"attention_probs_dropout_prob": 0.
|
7 |
-
"
|
8 |
-
"classifier_dropout": null,
|
9 |
-
"eos_token_id": 2,
|
10 |
"hidden_act": "gelu",
|
11 |
-
"hidden_dropout_prob": 0.
|
12 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
"initializer_range": 0.02,
|
14 |
"intermediate_size": 3072,
|
15 |
-
"
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
"num_attention_heads": 12,
|
|
|
19 |
"num_hidden_layers": 12,
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"problem_type": "single_label_classification",
|
24 |
-
"torch_dtype": "float32",
|
25 |
-
"transformers_version": "4.44.2",
|
26 |
-
"type_vocab_size": 1,
|
27 |
-
"use_cache": true,
|
28 |
-
"vocab_size": 250002
|
29 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
|
|
|
|
8 |
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "stable_diffusion",
|
13 |
+
"1": "midjourney",
|
14 |
+
"2": "dalle",
|
15 |
+
"3": "real",
|
16 |
+
"4": "other_ai"
|
17 |
+
},
|
18 |
+
"image_size": 224,
|
19 |
"initializer_range": 0.02,
|
20 |
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"dalle": 2,
|
23 |
+
"midjourney": 1,
|
24 |
+
"other_ai": 4,
|
25 |
+
"real": 3,
|
26 |
+
"stable_diffusion": 0
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"model_type": "vit",
|
30 |
"num_attention_heads": 12,
|
31 |
+
"num_channels": 3,
|
32 |
"num_hidden_layers": 12,
|
33 |
+
"patch_size": 16,
|
34 |
+
"qkv_bias": true,
|
35 |
+
"transformers_version": "4.46.3"
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|