sanali209 commited on
Commit
8048f82
·
verified ·
1 Parent(s): dc0c4f5

Upload best model after training (val_loss: 0.4880)

Browse files
Files changed (3) hide show
  1. config.json +33 -34
  2. model.safetensors +1 -1
  3. preprocessor_config.json +36 -23
config.json CHANGED
@@ -1,34 +1,33 @@
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": "high",
13
- "1": "low",
14
- "2": "normal"
15
- },
16
- "image_size": 224,
17
- "initializer_range": 0.02,
18
- "intermediate_size": 3072,
19
- "label2id": {
20
- "high": "0",
21
- "low": "1",
22
- "normal": "2"
23
- },
24
- "layer_norm_eps": 1e-12,
25
- "model_type": "vit",
26
- "num_attention_heads": 12,
27
- "num_channels": 3,
28
- "num_hidden_layers": 12,
29
- "patch_size": 16,
30
- "problem_type": "single_label_classification",
31
- "qkv_bias": true,
32
- "torch_dtype": "float32",
33
- "transformers_version": "4.47.1"
34
- }
 
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": "high",
13
+ "1": "low",
14
+ "2": "normal"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "high": 0,
21
+ "low": 1,
22
+ "normal": 2
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "qkv_bias": true,
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.41.2"
33
+ }
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4edb578b8d41f26f2c090c047bce250da9a3151e15bf5f7541d704ae1458e31e
3
  size 343227052
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d84888a7cb625e823a4520a1e3675cde01c77d73da103154b24859ba7429546
3
  size 343227052
preprocessor_config.json CHANGED
@@ -1,23 +1,36 @@
1
- {
2
- "do_convert_rgb": null,
3
- "do_normalize": true,
4
- "do_rescale": true,
5
- "do_resize": true,
6
- "image_mean": [
7
- 0.5,
8
- 0.5,
9
- 0.5
10
- ],
11
- "image_processor_type": "ViTFeatureExtractor",
12
- "image_std": [
13
- 0.5,
14
- 0.5,
15
- 0.5
16
- ],
17
- "resample": 2,
18
- "rescale_factor": 0.00392156862745098,
19
- "size": {
20
- "height": 224,
21
- "width": 224
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTFeatureExtractor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }