tcvrishank commited on
Commit
fe30056
1 Parent(s): 2b23115

Model save

Browse files
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
- "epoch": 6.0,
3
- "eval_accuracy": 0.7,
4
- "eval_loss": 0.7854475975036621,
5
- "eval_runtime": 5.1812,
6
- "eval_samples_per_second": 15.44,
7
- "eval_steps_per_second": 1.93,
8
- "total_flos": 3.7602497396736e+16,
9
- "train_loss": 0.9928933892931256,
10
- "train_runtime": 194.8808,
11
- "train_samples_per_second": 12.315,
12
- "train_steps_per_second": 0.216
13
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.65,
4
+ "eval_loss": 0.8501228094100952,
5
+ "eval_runtime": 4.6045,
6
+ "eval_samples_per_second": 17.374,
7
+ "eval_steps_per_second": 2.172,
8
+ "total_flos": 3.133541449728e+16,
9
+ "train_loss": 1.137827001299177,
10
+ "train_runtime": 183.2231,
11
+ "train_samples_per_second": 10.916,
12
+ "train_steps_per_second": 0.191
13
  }
config.json CHANGED
@@ -1,32 +1,13 @@
1
  {
2
- "_name_or_path": "nvidia/mit-b0",
3
  "architectures": [
4
- "SegformerForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
- "classifier_dropout_prob": 0.1,
8
- "decoder_hidden_size": 256,
9
- "depths": [
10
- 2,
11
- 2,
12
- 2,
13
- 2
14
- ],
15
- "downsampling_rates": [
16
- 1,
17
- 4,
18
- 8,
19
- 16
20
- ],
21
- "drop_path_rate": 0.1,
22
  "hidden_act": "gelu",
23
  "hidden_dropout_prob": 0.0,
24
- "hidden_sizes": [
25
- 32,
26
- 64,
27
- 160,
28
- 256
29
- ],
30
  "id2label": {
31
  "0": "Benign",
32
  "1": "InSitu",
@@ -35,49 +16,21 @@
35
  },
36
  "image_size": 224,
37
  "initializer_range": 0.02,
 
38
  "label2id": {
39
  "Benign": "0",
40
  "InSitu": "1",
41
  "Invasive": "2",
42
  "Normal": "3"
43
  },
44
- "layer_norm_eps": 1e-06,
45
- "mlp_ratios": [
46
- 4,
47
- 4,
48
- 4,
49
- 4
50
- ],
51
- "model_type": "segformer",
52
- "num_attention_heads": [
53
- 1,
54
- 2,
55
- 5,
56
- 8
57
- ],
58
  "num_channels": 3,
59
- "num_encoder_blocks": 4,
60
- "patch_sizes": [
61
- 7,
62
- 3,
63
- 3,
64
- 3
65
- ],
66
  "problem_type": "single_label_classification",
67
- "reshape_last_stage": true,
68
- "semantic_loss_ignore_index": 255,
69
- "sr_ratios": [
70
- 8,
71
- 4,
72
- 2,
73
- 1
74
- ],
75
- "strides": [
76
- 4,
77
- 2,
78
- 2,
79
- 2
80
- ],
81
  "torch_dtype": "float32",
82
  "transformers_version": "4.26.1"
83
  }
 
1
  {
2
+ "_name_or_path": "tcvrishank/histo_train_vit",
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": "Benign",
13
  "1": "InSitu",
 
16
  },
17
  "image_size": 224,
18
  "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
  "label2id": {
21
  "Benign": "0",
22
  "InSitu": "1",
23
  "Invasive": "2",
24
  "Normal": "3"
25
  },
26
+ "layer_norm_eps": 1e-12,
27
+ "model_type": "vit",
28
+ "num_attention_heads": 12,
 
 
 
 
 
 
 
 
 
 
 
29
  "num_channels": 3,
30
+ "num_hidden_layers": 12,
31
+ "patch_size": 16,
 
 
 
 
 
32
  "problem_type": "single_label_classification",
33
+ "qkv_bias": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  "torch_dtype": "float32",
35
  "transformers_version": "4.26.1"
36
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 6.0,
3
- "eval_accuracy": 0.7,
4
- "eval_loss": 0.7854475975036621,
5
- "eval_runtime": 5.1812,
6
- "eval_samples_per_second": 15.44,
7
- "eval_steps_per_second": 1.93
8
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.65,
4
+ "eval_loss": 0.8501228094100952,
5
+ "eval_runtime": 4.6045,
6
+ "eval_samples_per_second": 17.374,
7
+ "eval_steps_per_second": 2.172
8
  }
preprocessor_config.json CHANGED
@@ -1,23 +1,22 @@
1
  {
2
  "do_normalize": true,
3
- "do_reduce_labels": false,
4
  "do_rescale": true,
5
  "do_resize": true,
6
  "image_mean": [
7
- 0.485,
8
- 0.456,
9
- 0.406
10
  ],
11
- "image_processor_type": "SegformerImageProcessor",
12
  "image_std": [
13
- 0.229,
14
- 0.224,
15
- 0.225
16
  ],
17
  "resample": 2,
18
  "rescale_factor": 0.00392156862745098,
19
  "size": {
20
- "height": 512,
21
- "width": 512
22
  }
23
  }
 
1
  {
2
  "do_normalize": true,
 
3
  "do_rescale": true,
4
  "do_resize": true,
5
  "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
  ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
  "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
  ],
16
  "resample": 2,
17
  "rescale_factor": 0.00392156862745098,
18
  "size": {
19
+ "height": 224,
20
+ "width": 224
21
  }
22
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:736e338ae6c175c9a1402bafd68eccc46490a4360a8608272c2f5c1ce16af6cd
3
- size 13348117
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52b81b9436f28f788ea36ab0eaab1e7c2e9cc6cd58230462018bb07f2cd552fc
3
+ size 343274861
runs/Mar25_20-19-42_828e34389393/events.out.tfevents.1679775793.828e34389393.24.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1b53d511d277e33b77011a080cd66205daacc4df39a897133853c3b6c5a562c
3
+ size 357
runs/Mar25_20-23-45_828e34389393/1679775836.194679/events.out.tfevents.1679775836.828e34389393.24.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73ea88d265ba380c7a2d534808d465ca2b80b0498182402c250acb2fc892453b
3
+ size 5695
runs/Mar25_20-23-45_828e34389393/events.out.tfevents.1679775836.828e34389393.24.6 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e81a546f1f9c906448e5755520b6567f3016f4dcf6ba6432a82e5270aad4a0ea
3
+ size 5109
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 6.0,
3
- "total_flos": 3.7602497396736e+16,
4
- "train_loss": 0.9928933892931256,
5
- "train_runtime": 194.8808,
6
- "train_samples_per_second": 12.315,
7
- "train_steps_per_second": 0.216
8
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "total_flos": 3.133541449728e+16,
4
+ "train_loss": 1.137827001299177,
5
+ "train_runtime": 183.2231,
6
+ "train_samples_per_second": 10.916,
7
+ "train_steps_per_second": 0.191
8
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72f35b6227592223779cd4c7154aa2d14de68fb55568cdf87e7e82a09b893231
3
  size 3515
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51c784bcfe84093acfb329ab8cdd8aa46a6c4c20bd94e51587d2a6380e8a07ff
3
  size 3515