KMH158 commited on
Commit
0f72470
·
verified ·
1 Parent(s): 6f2b1b9

Upload ResNetForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +33 -16
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,13 +1,24 @@
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": "left",
13
  "1": "right",
@@ -25,9 +36,6 @@
25
  "13": "abscess",
26
  "14": "dysembryoplastic_neuroepithelial_tumor"
27
  },
28
- "image_size": 224,
29
- "initializer_range": 0.02,
30
- "intermediate_size": 3072,
31
  "label2id": {
32
  "abscess": 13,
33
  "astrocytoma": 10,
@@ -45,14 +53,23 @@
45
  "right": 1,
46
  "temporal": 3
47
  },
48
- "layer_norm_eps": 1e-12,
49
- "model_type": "vit",
50
- "num_attention_heads": 12,
51
  "num_channels": 3,
52
- "num_hidden_layers": 12,
53
- "patch_size": 16,
 
 
 
 
54
  "problem_type": "multi_label_classification",
55
- "qkv_bias": true,
 
 
 
 
 
 
56
  "torch_dtype": "float32",
57
  "transformers_version": "4.48.3"
58
  }
 
1
  {
2
+ "_name_or_path": "microsoft/resnet-50",
3
  "architectures": [
4
+ "ResNetForImageClassification"
5
+ ],
6
+ "depths": [
7
+ 3,
8
+ 4,
9
+ 6,
10
+ 3
11
+ ],
12
+ "downsample_in_bottleneck": false,
13
+ "downsample_in_first_stage": false,
14
+ "embedding_size": 64,
15
+ "hidden_act": "relu",
16
+ "hidden_sizes": [
17
+ 256,
18
+ 512,
19
+ 1024,
20
+ 2048
21
  ],
 
 
 
 
 
22
  "id2label": {
23
  "0": "left",
24
  "1": "right",
 
36
  "13": "abscess",
37
  "14": "dysembryoplastic_neuroepithelial_tumor"
38
  },
 
 
 
39
  "label2id": {
40
  "abscess": 13,
41
  "astrocytoma": 10,
 
53
  "right": 1,
54
  "temporal": 3
55
  },
56
+ "layer_type": "bottleneck",
57
+ "model_type": "resnet",
 
58
  "num_channels": 3,
59
+ "out_features": [
60
+ "stage4"
61
+ ],
62
+ "out_indices": [
63
+ 4
64
+ ],
65
  "problem_type": "multi_label_classification",
66
+ "stage_names": [
67
+ "stem",
68
+ "stage1",
69
+ "stage2",
70
+ "stage3",
71
+ "stage4"
72
+ ],
73
  "torch_dtype": "float32",
74
  "transformers_version": "4.48.3"
75
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9e4faad10b6412d61231863b2b222a7cf69e3f57640552855fd0809a615c13a
3
- size 343263964
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46cfa0cf3618051d025117af4c7236b75f7a6e7e03ce07e1023b6c4648d521f7
3
+ size 94409540