AlexKolosov commited on
Commit
a0b3c0f
·
1 Parent(s): 1a816d9

Model save

Browse files
config.json CHANGED
@@ -1,34 +1,36 @@
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": "angular_leaf_spot",
14
- "1": "bean_rust",
15
- "2": "healthy"
16
  },
17
- "image_size": 224,
18
- "initializer_range": 0.02,
19
- "intermediate_size": 3072,
20
  "label2id": {
21
- "angular_leaf_spot": "0",
22
- "bean_rust": "1",
23
- "healthy": "2"
24
  },
25
- "layer_norm_eps": 1e-12,
26
- "model_type": "vit",
27
- "num_attention_heads": 12,
28
  "num_channels": 3,
29
- "num_hidden_layers": 12,
30
- "patch_size": 16,
31
- "qkv_bias": true,
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.22.0.dev0"
34
  }
 
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_first_stage": false,
13
+ "embedding_size": 64,
14
  "finetuning_task": "image-classification",
15
+ "hidden_act": "relu",
16
+ "hidden_sizes": [
17
+ 256,
18
+ 512,
19
+ 1024,
20
+ 2048
21
+ ],
22
  "id2label": {
23
+ "0": "cats",
24
+ "1": "dogs"
 
25
  },
 
 
 
26
  "label2id": {
27
+ "cats": "0",
28
+ "dogs": "1"
 
29
  },
30
+ "layer_type": "bottleneck",
31
+ "model_type": "resnet",
 
32
  "num_channels": 3,
33
+ "problem_type": "single_label_classification",
 
 
34
  "torch_dtype": "float32",
35
  "transformers_version": "4.22.0.dev0"
36
  }
preprocessor_config.json CHANGED
@@ -1,17 +1,18 @@
1
  {
 
2
  "do_normalize": true,
3
  "do_resize": true,
4
- "feature_extractor_type": "ViTFeatureExtractor",
5
  "image_mean": [
6
- 0.5,
7
- 0.5,
8
- 0.5
9
  ],
10
  "image_std": [
11
- 0.5,
12
- 0.5,
13
- 0.5
14
  ],
15
- "resample": 2,
16
  "size": 224
17
  }
 
1
  {
2
+ "crop_pct": 0.875,
3
  "do_normalize": true,
4
  "do_resize": true,
5
+ "feature_extractor_type": "ConvNextFeatureExtractor",
6
  "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
  ],
11
  "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
  ],
16
+ "resample": 3,
17
  "size": 224
18
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:505f5d3eed83801cc8b6ec6957a0959c5354ee83105b59fb6111b7d6f3d26104
3
- size 343270065
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:632f98ee60fb0af9af8a0474bf6338186a1cb212ef578627d0816a494e58f594
3
+ size 94372673
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5d9db89873c68fe1c98704acd87155c616e259f10e1d3995be58c90b4fd2c4c5
3
  size 3375
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57f9b955c2006f19e884f2ba2127bae2b54b3378da247d1c0800c9a874345d69
3
  size 3375