theophilusijiebor1 commited on
Commit
ed648cc
1 Parent(s): d69db2d

End of training

Browse files
Files changed (5) hide show
  1. README.md +81 -0
  2. config.json +63 -0
  3. preprocessor_config.json +23 -0
  4. pytorch_model.bin +3 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: juliensimon/autotrain-chest-xray-demo-1677859324
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ - f1
8
+ - precision
9
+ - recall
10
+ model-index:
11
+ - name: Text2Image_PyData_23
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # Text2Image_PyData_23
19
+
20
+ This model is a fine-tuned version of [juliensimon/autotrain-chest-xray-demo-1677859324](https://huggingface.co/juliensimon/autotrain-chest-xray-demo-1677859324) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.3421
23
+ - Accuracy: 0.8333
24
+ - F1: [0.71584699 0.88208617]
25
+ - Precision: [0.99242424 0.79065041]
26
+ - Recall: [0.55982906 0.9974359 ]
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 1e-05
46
+ - train_batch_size: 16
47
+ - eval_batch_size: 64
48
+ - seed: 42
49
+ - gradient_accumulation_steps: 8
50
+ - total_train_batch_size: 128
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 15
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------------------:|:-----------------------:|:-----------------------:|
59
+ | 0.0451 | 0.98 | 40 | 0.6974 | 0.7933 | [0.62170088 0.85777288] | [0.99065421 0.75241779] | [0.45299145 0.9974359 ] |
60
+ | 0.036 | 1.99 | 81 | 0.3557 | 0.8958 | [0.84107579 0.92252682] | [0.98285714 0.86191537] | [0.73504274 0.99230769] |
61
+ | 0.043 | 2.99 | 122 | 0.4253 | 0.9006 | [0.84803922 0.92619048] | [0.99425287 0.86444444] | [0.73931624 0.9974359 ] |
62
+ | 0.0225 | 4.0 | 163 | 0.8776 | 0.8349 | [0.71934605 0.8830874 ] | [0.9924812 0.79226069] | [0.56410256 0.9974359 ] |
63
+ | 0.0153 | 4.98 | 203 | 0.7095 | 0.8670 | [0.78552972 0.90360046] | [0.99346405 0.82590234] | [0.64957265 0.9974359 ] |
64
+ | 0.0107 | 5.99 | 244 | 0.8537 | 0.8446 | [0.73994638 0.88914286] | [0.99280576 0.80206186] | [0.58974359 0.9974359 ] |
65
+ | 0.0052 | 6.99 | 285 | 1.0167 | 0.8462 | [0.74331551 0.89016018] | [0.99285714 0.80371901] | [0.59401709 0.9974359 ] |
66
+ | 0.0049 | 8.0 | 326 | 1.3230 | 0.8045 | [0.64942529 0.86444444] | [0.99122807 0.7627451 ] | [0.48290598 0.9974359 ] |
67
+ | 0.0061 | 8.98 | 366 | 1.2652 | 0.8269 | [0.70165746 0.87810384] | [0.9921875 0.78427419] | [0.54273504 0.9974359 ] |
68
+ | 0.004 | 9.99 | 407 | 1.4846 | 0.8157 | [0.67605634 0.8712206 ] | [0.99173554 0.77335984] | [0.51282051 0.9974359 ] |
69
+ | 0.0005 | 10.99 | 448 | 1.5685 | 0.8109 | [0.66477273 0.86830357] | [0.99152542 0.7687747 ] | [0.5 0.9974359] |
70
+ | 0.0029 | 12.0 | 489 | 1.2547 | 0.8397 | [0.72972973 0.88610478] | [0.99264706 0.79713115] | [0.57692308 0.9974359 ] |
71
+ | 0.0015 | 12.98 | 529 | 1.4026 | 0.8285 | [0.70523416 0.87909605] | [0.99224806 0.78585859] | [0.54700855 0.9974359 ] |
72
+ | 0.0012 | 13.99 | 570 | 1.4444 | 0.8237 | [0.69444444 0.87612613] | [0.99206349 0.7811245 ] | [0.53418803 0.9974359 ] |
73
+ | 0.0039 | 14.72 | 600 | 1.3421 | 0.8333 | [0.71584699 0.88208617] | [0.99242424 0.79065041] | [0.55982906 0.9974359 ] |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.34.1
79
+ - Pytorch 2.1.0+cu118
80
+ - Datasets 2.14.6
81
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "juliensimon/autotrain-chest-xray-demo-1677859324",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 18,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 128,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "NORMAL",
21
+ "1": "PNEUMONIA"
22
+ },
23
+ "image_size": 224,
24
+ "initializer_range": 0.02,
25
+ "label2id": {
26
+ "NORMAL": "0",
27
+ "PNEUMONIA": "1"
28
+ },
29
+ "layer_norm_eps": 1e-05,
30
+ "max_length": 128,
31
+ "mlp_ratio": 4.0,
32
+ "model_type": "swin",
33
+ "num_channels": 3,
34
+ "num_heads": [
35
+ 4,
36
+ 8,
37
+ 16,
38
+ 32
39
+ ],
40
+ "num_layers": 4,
41
+ "out_features": [
42
+ "stage4"
43
+ ],
44
+ "out_indices": [
45
+ 4
46
+ ],
47
+ "padding": "max_length",
48
+ "patch_size": 4,
49
+ "path_norm": true,
50
+ "problem_type": "single_label_classification",
51
+ "qkv_bias": true,
52
+ "stage_names": [
53
+ "stem",
54
+ "stage1",
55
+ "stage2",
56
+ "stage3",
57
+ "stage4"
58
+ ],
59
+ "torch_dtype": "float32",
60
+ "transformers_version": "4.34.1",
61
+ "use_absolute_embeddings": false,
62
+ "window_size": 7
63
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ViTFeatureExtractor",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ViTFeatureExtractor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9ade60aa9e2d4a51f5b214cb1f7ddf6cfcbed58a8e1615520f77ff7a2212b6f
3
+ size 347600206
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a1fe156333dc4f97b8769205e2546542a6cc4ca6812c1f0ce8f7cb998c3d3de
3
+ size 4536