zxcej commited on
Commit
f2d0bef
·
1 Parent(s): 88c0893

Upload ViTForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +53 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "outputs",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "finetuning_task": "image-classification",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "SMT",
14
+ "1": "angiodysplasia",
15
+ "2": "bleeding",
16
+ "3": "diverticulum",
17
+ "4": "erosion",
18
+ "5": "erythema",
19
+ "6": "foreign body",
20
+ "7": "lymph follicle",
21
+ "8": "lymphangiectasia",
22
+ "9": "no_class",
23
+ "10": "polyp-like",
24
+ "11": "stenosis"
25
+ },
26
+ "image_size": 224,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 3072,
29
+ "label2id": {
30
+ "SMT": "0",
31
+ "angiodysplasia": "1",
32
+ "bleeding": "2",
33
+ "diverticulum": "3",
34
+ "erosion": "4",
35
+ "erythema": "5",
36
+ "foreign body": "6",
37
+ "lymph follicle": "7",
38
+ "lymphangiectasia": "8",
39
+ "no_class": "9",
40
+ "polyp-like": "10",
41
+ "stenosis": "11"
42
+ },
43
+ "layer_norm_eps": 1e-12,
44
+ "model_type": "vit",
45
+ "num_attention_heads": 12,
46
+ "num_channels": 3,
47
+ "num_hidden_layers": 12,
48
+ "patch_size": 16,
49
+ "problem_type": "single_label_classification",
50
+ "qkv_bias": true,
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.27.0.dev0"
53
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b45ffd0664ea6d51033a2c13ca237f6b66f705a6373acbcb46ca71dd699e123
3
+ size 343296685