ShuaHousetable commited on
Commit
2900f1e
1 Parent(s): 90d8e66

End of training

Browse files
README.md CHANGED
@@ -14,10 +14,10 @@ should probably proofread and complete it, then remove this comment. -->
14
 
15
  # serverless-roomsort
16
 
17
- This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
- - Loss: 1.5517
20
- - Accuracy: 0.4380
21
 
22
  ## Model description
23
 
@@ -37,19 +37,23 @@ More information needed
37
 
38
  The following hyperparameters were used during training:
39
  - learning_rate: 2e-05
40
- - train_batch_size: 32
41
  - eval_batch_size: 64
42
  - seed: 42
43
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
  - lr_scheduler_type: linear
45
  - lr_scheduler_warmup_steps: 500
46
- - num_epochs: 1
47
 
48
  ### Training results
49
 
50
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
- | No log | 1.0 | 77 | 1.5517 | 0.4380 |
 
 
 
 
53
 
54
 
55
  ### Framework versions
 
14
 
15
  # serverless-roomsort
16
 
17
+ This model is a fine-tuned version of [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
+ - Loss: 0.0394
20
+ - Accuracy: 0.9892
21
 
22
  ## Model description
23
 
 
37
 
38
  The following hyperparameters were used during training:
39
  - learning_rate: 2e-05
40
+ - train_batch_size: 16
41
  - eval_batch_size: 64
42
  - seed: 42
43
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
  - lr_scheduler_type: linear
45
  - lr_scheduler_warmup_steps: 500
46
+ - num_epochs: 5
47
 
48
  ### Training results
49
 
50
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | 0.7844 | 1.0 | 762 | 0.0608 | 0.9791 |
53
+ | 0.0361 | 2.0 | 1524 | 0.0626 | 0.9830 |
54
+ | 0.0149 | 3.0 | 2286 | 0.0468 | 0.9879 |
55
+ | 0.0027 | 4.0 | 3048 | 0.0394 | 0.9892 |
56
+ | 0.0017 | 5.0 | 3810 | 0.0486 | 0.9889 |
57
 
58
 
59
  ### Framework versions
config.json CHANGED
@@ -1,38 +1,72 @@
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
  "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.0,
10
  "hidden_size": 768,
11
  "id2label": {
12
  "0": "Bathroom",
13
  "1": "Kitchen",
14
- "2": "Exterior",
15
- "3": "Bedroom_Office",
16
- "4": "LivingRoom_DiningRoom"
 
 
 
 
 
17
  },
18
  "image_size": 224,
19
  "initializer_range": 0.02,
20
  "intermediate_size": 3072,
21
  "label2id": {
22
  "Bathroom": 0,
23
- "Bedroom_Office": 3,
24
- "Exterior": 2,
 
 
 
25
  "Kitchen": 1,
26
- "LivingRoom_DiningRoom": 4
 
 
27
  },
28
  "layer_norm_eps": 1e-12,
29
- "model_type": "vit",
 
30
  "num_attention_heads": 12,
31
  "num_channels": 3,
32
  "num_hidden_layers": 12,
 
 
 
 
 
 
33
  "patch_size": 16,
 
 
 
 
 
 
34
  "problem_type": "single_label_classification",
35
- "qkv_bias": true,
36
  "torch_dtype": "float32",
37
- "transformers_version": "4.17.0"
 
 
 
 
 
 
 
38
  }
 
1
  {
2
+ "_name_or_path": "microsoft/beit-base-patch16-224-pt22k-ft22k",
3
  "architectures": [
4
+ "BeitForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
+ "auxiliary_channels": 256,
8
+ "auxiliary_concat_input": false,
9
+ "auxiliary_loss_weight": 0.4,
10
+ "auxiliary_num_convs": 1,
11
+ "drop_path_rate": 0.1,
12
  "hidden_act": "gelu",
13
  "hidden_dropout_prob": 0.0,
14
  "hidden_size": 768,
15
  "id2label": {
16
  "0": "Bathroom",
17
  "1": "Kitchen",
18
+ "2": "Bedroom",
19
+ "3": "LivingRoom_DiningRoom",
20
+ "4": "Garage",
21
+ "5": "Hallway",
22
+ "6": "LaundryRoom",
23
+ "7": "Office",
24
+ "8": "Blueprints",
25
+ "9": "Exterior"
26
  },
27
  "image_size": 224,
28
  "initializer_range": 0.02,
29
  "intermediate_size": 3072,
30
  "label2id": {
31
  "Bathroom": 0,
32
+ "Bedroom": 2,
33
+ "Blueprints": 8,
34
+ "Exterior": 9,
35
+ "Garage": 4,
36
+ "Hallway": 5,
37
  "Kitchen": 1,
38
+ "LaundryRoom": 6,
39
+ "LivingRoom_DiningRoom": 3,
40
+ "Office": 7
41
  },
42
  "layer_norm_eps": 1e-12,
43
+ "layer_scale_init_value": 0.1,
44
+ "model_type": "beit",
45
  "num_attention_heads": 12,
46
  "num_channels": 3,
47
  "num_hidden_layers": 12,
48
+ "out_indices": [
49
+ 3,
50
+ 5,
51
+ 7,
52
+ 11
53
+ ],
54
  "patch_size": 16,
55
+ "pool_scales": [
56
+ 1,
57
+ 2,
58
+ 3,
59
+ 6
60
+ ],
61
  "problem_type": "single_label_classification",
62
+ "semantic_loss_ignore_index": 255,
63
  "torch_dtype": "float32",
64
+ "transformers_version": "4.17.0",
65
+ "use_absolute_position_embeddings": false,
66
+ "use_auxiliary_head": true,
67
+ "use_mask_token": false,
68
+ "use_mean_pooling": true,
69
+ "use_relative_position_bias": true,
70
+ "use_shared_relative_position_bias": false,
71
+ "vocab_size": 8192
72
  }
eval_results.txt CHANGED
@@ -1,6 +1,6 @@
1
- epoch = 1.0
2
- eval_accuracy = 0.43795620437956206
3
- eval_loss = 1.5516855716705322
4
- eval_runtime = 6.2916
5
- eval_samples_per_second = 43.55
6
- eval_steps_per_second = 0.795
 
1
+ epoch = 5.0
2
+ eval_accuracy = 0.9891625615763546
3
+ eval_loss = 0.03943309187889099
4
+ eval_runtime = 76.6659
5
+ eval_samples_per_second = 52.957
6
+ eval_steps_per_second = 0.835
preprocessor_config.json CHANGED
@@ -1,7 +1,9 @@
1
  {
 
 
2
  "do_normalize": true,
3
  "do_resize": true,
4
- "feature_extractor_type": "ViTFeatureExtractor",
5
  "image_mean": [
6
  0.5,
7
  0.5,
@@ -12,6 +14,7 @@
12
  0.5,
13
  0.5
14
  ],
 
15
  "resample": 2,
16
  "size": 224
17
  }
 
1
  {
2
+ "crop_size": 224,
3
+ "do_center_crop": false,
4
  "do_normalize": true,
5
  "do_resize": true,
6
+ "feature_extractor_type": "BeitFeatureExtractor",
7
  "image_mean": [
8
  0.5,
9
  0.5,
 
14
  0.5,
15
  0.5
16
  ],
17
+ "reduce_labels": false,
18
  "resample": 2,
19
  "size": 224
20
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d587760ba20be9578d4768849aeba99d441a3946f2774570c3b1ec6dee66cc60
3
- size 343289969
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2c635720c1af94caa1e0bff1923a0b882a153afc5d07da2247d3b5691f82f84
3
+ size 346898795
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:628c1cdb8971b26ff1e3e30174de92aa6d4303e97c0acf3281e63ad2bae7cdbe
3
  size 3055
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c792df19980ada2f81b6c845354cf210f3968795289de29329e37f932985207b
3
  size 3055