TheresChip commited on
Commit
cfd3760
·
verified ·
1 Parent(s): b44e373

Upload ViTForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +21 -15
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,27 +1,33 @@
1
  {
2
  "architectures": [
3
- "RobertaForSequenceClassification"
4
  ],
5
- "attention_probs_dropout_prob": 0.1,
6
- "bos_token_id": 0,
7
- "classifier_dropout": null,
8
  "dtype": "float32",
9
- "eos_token_id": 2,
10
  "hidden_act": "gelu",
11
- "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
 
 
 
 
 
13
  "initializer_range": 0.02,
14
  "intermediate_size": 3072,
15
- "layer_norm_eps": 1e-05,
16
- "max_position_embeddings": 514,
17
- "model_type": "roberta",
 
 
 
18
  "num_attention_heads": 12,
 
19
  "num_hidden_layers": 12,
20
- "pad_token_id": 1,
21
- "position_embedding_type": "absolute",
 
22
  "problem_type": "single_label_classification",
23
- "transformers_version": "4.57.3",
24
- "type_vocab_size": 1,
25
- "use_cache": true,
26
- "vocab_size": 50265
27
  }
 
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": "normal",
13
+ "1": "nsfw"
14
+ },
15
+ "image_size": 224,
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
+ "label2id": {
19
+ "normal": "0",
20
+ "nsfw": "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": "4.57.3"
 
 
33
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c81d238cf8075b472419f5739e6d2a115d665c632e795eff14ca0228dc42668
3
- size 498612824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38fb4f1994036e6fe08d1bdd89448520044b49fae3dafb9969115dedca3137d7
3
+ size 343223968