essam24 commited on
Commit
3e8610d
1 Parent(s): 4e11d2c

initial commit

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/resnet-50
4
+ tags:
5
+ - image-classification
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ model-index:
10
+ - name: results
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # results
18
+
19
+ This model is a fine-tuned version of [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50) on the essam24/brain-tumour-v1 dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5474
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 5
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss |
51
+ |:-------------:|:-----:|:----:|:---------------:|
52
+ | No log | 1.0 | 37 | 7.5096 |
53
+ | No log | 2.0 | 74 | 6.1869 |
54
+ | No log | 3.0 | 111 | 2.2303 |
55
+ | No log | 4.0 | 148 | 0.7004 |
56
+ | No log | 5.0 | 185 | 0.5474 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.42.4
62
+ - Pytorch 2.4.0+cu121
63
+ - Datasets 2.21.0
64
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_loss": 0.5474433898925781,
4
+ "eval_runtime": 22.8005,
5
+ "eval_samples_per_second": 6.36,
6
+ "eval_steps_per_second": 0.439,
7
+ "total_flos": 6.705406255177728e+16,
8
+ "train_loss": 2.0429481300147803,
9
+ "train_runtime": 422.6396,
10
+ "train_samples_per_second": 6.873,
11
+ "train_steps_per_second": 0.438
12
+ }
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_bottleneck": false,
13
+ "downsample_in_first_stage": false,
14
+ "embedding_size": 64,
15
+ "hidden_act": "relu",
16
+ "hidden_sizes": [
17
+ 256,
18
+ 512,
19
+ 1024,
20
+ 2048
21
+ ],
22
+ "layer_type": "bottleneck",
23
+ "model_type": "resnet",
24
+ "num_channels": 3,
25
+ "out_features": [
26
+ "stage4"
27
+ ],
28
+ "out_indices": [
29
+ 4
30
+ ],
31
+ "problem_type": "single_label_classification",
32
+ "stage_names": [
33
+ "stem",
34
+ "stage1",
35
+ "stage2",
36
+ "stage3",
37
+ "stage4"
38
+ ],
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.42.4"
41
+ }
eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_loss": 0.5474433898925781,
4
+ "eval_runtime": 22.8005,
5
+ "eval_samples_per_second": 6.36,
6
+ "eval_steps_per_second": 0.439
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:892aea1fc0e618551506d6efb1cf39a66dfeb1b6bf7dcaa790654a30867446a5
3
+ size 102482856
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 6.705406255177728e+16,
4
+ "train_loss": 2.0429481300147803,
5
+ "train_runtime": 422.6396,
6
+ "train_samples_per_second": 6.873,
7
+ "train_steps_per_second": 0.438
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 185,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_loss": 7.509580612182617,
14
+ "eval_runtime": 14.6263,
15
+ "eval_samples_per_second": 9.914,
16
+ "eval_steps_per_second": 0.684,
17
+ "step": 37
18
+ },
19
+ {
20
+ "epoch": 2.0,
21
+ "eval_loss": 6.186887741088867,
22
+ "eval_runtime": 14.3793,
23
+ "eval_samples_per_second": 10.084,
24
+ "eval_steps_per_second": 0.695,
25
+ "step": 74
26
+ },
27
+ {
28
+ "epoch": 3.0,
29
+ "eval_loss": 2.2302987575531006,
30
+ "eval_runtime": 14.3821,
31
+ "eval_samples_per_second": 10.082,
32
+ "eval_steps_per_second": 0.695,
33
+ "step": 111
34
+ },
35
+ {
36
+ "epoch": 4.0,
37
+ "eval_loss": 0.7003790736198425,
38
+ "eval_runtime": 14.581,
39
+ "eval_samples_per_second": 9.944,
40
+ "eval_steps_per_second": 0.686,
41
+ "step": 148
42
+ },
43
+ {
44
+ "epoch": 5.0,
45
+ "eval_loss": 0.5474433898925781,
46
+ "eval_runtime": 14.3989,
47
+ "eval_samples_per_second": 10.07,
48
+ "eval_steps_per_second": 0.694,
49
+ "step": 185
50
+ },
51
+ {
52
+ "epoch": 5.0,
53
+ "step": 185,
54
+ "total_flos": 6.705406255177728e+16,
55
+ "train_loss": 2.0429481300147803,
56
+ "train_runtime": 422.6396,
57
+ "train_samples_per_second": 6.873,
58
+ "train_steps_per_second": 0.438
59
+ }
60
+ ],
61
+ "logging_steps": 500,
62
+ "max_steps": 185,
63
+ "num_input_tokens_seen": 0,
64
+ "num_train_epochs": 5,
65
+ "save_steps": 500,
66
+ "stateful_callbacks": {
67
+ "TrainerControl": {
68
+ "args": {
69
+ "should_epoch_stop": false,
70
+ "should_evaluate": false,
71
+ "should_log": false,
72
+ "should_save": true,
73
+ "should_training_stop": true
74
+ },
75
+ "attributes": {}
76
+ }
77
+ },
78
+ "total_flos": 6.705406255177728e+16,
79
+ "train_batch_size": 16,
80
+ "trial_name": null,
81
+ "trial_params": null
82
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35940378fdc99a1d777d1c724799f3616e1e08aa4f36a0f8bfb035296783e4a5
3
+ size 5048