jcbao77 commited on
Commit
fb57452
1 Parent(s): e140f5d

Upload ResNetForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +32 -16
  2. pytorch_model.bin +2 -2
config.json CHANGED
@@ -1,14 +1,24 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
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": "LABEL_0",
14
  "1": "LABEL_1",
@@ -211,9 +221,6 @@
211
  "198": "LABEL_198",
212
  "199": "LABEL_199"
213
  },
214
- "image_size": 224,
215
- "initializer_range": 0.02,
216
- "intermediate_size": 3072,
217
  "label2id": {
218
  "n01443537": "0",
219
  "n01629819": "1",
@@ -416,14 +423,23 @@
416
  "n13719102": "198",
417
  "n14991210": "199"
418
  },
419
- "layer_norm_eps": 1e-12,
420
- "model_type": "vit",
421
- "num_attention_heads": 12,
422
  "num_channels": 3,
423
- "num_hidden_layers": 12,
424
- "patch_size": 16,
 
 
 
 
425
  "problem_type": "single_label_classification",
426
- "qkv_bias": true,
 
 
 
 
 
 
427
  "torch_dtype": "float32",
428
  "transformers_version": "4.28.1"
429
  }
 
1
  {
2
+ "_name_or_path": "microsoft/resnet-18",
3
  "architectures": [
4
+ "ResNetForImageClassification"
5
  ],
6
+ "depths": [
7
+ 2,
8
+ 2,
9
+ 2,
10
+ 2
11
+ ],
12
+ "downsample_in_first_stage": false,
13
+ "embedding_size": 64,
14
  "finetuning_task": "image-classification",
15
+ "hidden_act": "relu",
16
+ "hidden_sizes": [
17
+ 64,
18
+ 128,
19
+ 256,
20
+ 512
21
+ ],
22
  "id2label": {
23
  "0": "LABEL_0",
24
  "1": "LABEL_1",
 
221
  "198": "LABEL_198",
222
  "199": "LABEL_199"
223
  },
 
 
 
224
  "label2id": {
225
  "n01443537": "0",
226
  "n01629819": "1",
 
423
  "n13719102": "198",
424
  "n14991210": "199"
425
  },
426
+ "layer_type": "basic",
427
+ "model_type": "resnet",
 
428
  "num_channels": 3,
429
+ "out_features": [
430
+ "stage4"
431
+ ],
432
+ "out_indices": [
433
+ 4
434
+ ],
435
  "problem_type": "single_label_classification",
436
+ "stage_names": [
437
+ "stem",
438
+ "stage1",
439
+ "stage2",
440
+ "stage3",
441
+ "stage4"
442
+ ],
443
  "torch_dtype": "float32",
444
  "transformers_version": "4.28.1"
445
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b93f4dd973471b77b84cae28aa8824d48c5998194c7b41b41667c3f742dd16b4
3
- size 343874989
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db21305048b58cc8674ff7455346da87632d28192710f7d85aa04548dc8f2bf7
3
+ size 45196149