nateraw commited on
Commit
e207e8e
1 Parent(s): a82a948
.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - timm
5
+ - generated_from_trainer
6
+ datasets:
7
+ - beans
8
+ metrics:
9
+ - accuracy
10
+ model_index:
11
+ - name: timm-resnet18-beans-test-2
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: beans
18
+ type: beans
19
+ args: default
20
+ metric:
21
+ name: Accuracy
22
+ type: accuracy
23
+ value: 0.5789473684210527
24
+ ---
25
+
26
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
27
+ should probably proofread and complete it, then remove this comment. -->
28
+
29
+ # timm-resnet18-beans-test-2
30
+
31
+ This model is a fine-tuned version of [resnet18](https://huggingface.co/resnet18) on the beans dataset.
32
+ It achieves the following results on the evaluation set:
33
+ - Loss: 1.3225
34
+ - Accuracy: 0.5789
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 0.001
54
+ - train_batch_size: 4
55
+ - eval_batch_size: 8
56
+ - seed: 42
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: linear
59
+ - training_steps: 10
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
64
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
65
+ | 0.2601 | 0.02 | 5 | 2.8349 | 0.5113 |
66
+ | 1.8184 | 0.04 | 10 | 1.3225 | 0.5789 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.9.1
72
+ - Pytorch 1.9.0
73
+ - Datasets 1.11.1.dev0
74
+ - Tokenizers 0.10.3
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.04,
3
+ "eval_accuracy": 0.5789473684210527,
4
+ "eval_loss": 1.3225154876708984,
5
+ "eval_runtime": 7.4355,
6
+ "eval_samples_per_second": 17.887,
7
+ "eval_steps_per_second": 2.286,
8
+ "train_loss": 2.0306697309017183,
9
+ "train_runtime": 22.46,
10
+ "train_samples_per_second": 1.781,
11
+ "train_steps_per_second": 0.445
12
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "url": "https://download.pytorch.org/models/resnet18-5c106cde.pth",
3
+ "num_classes": 1000,
4
+ "input_size": [
5
+ 3,
6
+ 224,
7
+ 224
8
+ ],
9
+ "pool_size": [
10
+ 7,
11
+ 7
12
+ ],
13
+ "crop_pct": 0.875,
14
+ "interpolation": "bilinear",
15
+ "mean": [
16
+ 0.485,
17
+ 0.456,
18
+ 0.406
19
+ ],
20
+ "std": [
21
+ 0.229,
22
+ 0.224,
23
+ 0.225
24
+ ],
25
+ "first_conv": "conv1",
26
+ "classifier": "fc",
27
+ "architecture": "resnet18"
28
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.04,
3
+ "eval_accuracy": 0.5789473684210527,
4
+ "eval_loss": 1.3225154876708984,
5
+ "eval_runtime": 7.4355,
6
+ "eval_samples_per_second": 17.887,
7
+ "eval_steps_per_second": 2.286
8
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88b2a56015d5e9c9adf644ec9e613a860628b4de3c2729153fbd0d52a982e7f8
3
+ size 44788877
runs/Sep03_19-12-43_Nates-MBP/1630717970.292168/events.out.tfevents.1630717970.Nates-MBP.94438.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdae3c3842a6bee972bf26155476faad8c171bb529c3505f57a9608b5e0959ac
3
+ size 4253
runs/Sep03_19-12-43_Nates-MBP/events.out.tfevents.1630717970.Nates-MBP.94438.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:300ccf1fbb9e688676e3bdf1a86c58d4989d5aacb1cad9f8d3023d19688ca896
3
+ size 4030
runs/Sep03_19-12-43_Nates-MBP/events.out.tfevents.1630718000.Nates-MBP.94438.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12f8b9ae2a62553dbf57d3b11be607130ac44d611e8fd8e3b80e4477efc2267d
3
+ size 357
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.04,
3
+ "train_loss": 2.0306697309017183,
4
+ "train_runtime": 22.46,
5
+ "train_samples_per_second": 1.781,
6
+ "train_steps_per_second": 0.445
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.3225154876708984,
3
+ "best_model_checkpoint": "./timm-resnet18-beans-test-2/checkpoint-10",
4
+ "epoch": 0.03861003861003861,
5
+ "global_step": 10,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.01,
12
+ "learning_rate": 0.0008,
13
+ "loss": 0.9243,
14
+ "step": 2
15
+ },
16
+ {
17
+ "epoch": 0.02,
18
+ "learning_rate": 0.0006,
19
+ "loss": 0.2601,
20
+ "step": 4
21
+ },
22
+ {
23
+ "epoch": 0.02,
24
+ "eval_accuracy": 0.5112781954887218,
25
+ "eval_loss": 2.834904432296753,
26
+ "eval_runtime": 7.3676,
27
+ "eval_samples_per_second": 18.052,
28
+ "eval_steps_per_second": 2.307,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.02,
33
+ "learning_rate": 0.0004,
34
+ "loss": 3.4656,
35
+ "step": 6
36
+ },
37
+ {
38
+ "epoch": 0.03,
39
+ "learning_rate": 0.0002,
40
+ "loss": 3.6849,
41
+ "step": 8
42
+ },
43
+ {
44
+ "epoch": 0.04,
45
+ "learning_rate": 0.0,
46
+ "loss": 1.8184,
47
+ "step": 10
48
+ },
49
+ {
50
+ "epoch": 0.04,
51
+ "eval_accuracy": 0.5789473684210527,
52
+ "eval_loss": 1.3225154876708984,
53
+ "eval_runtime": 7.2554,
54
+ "eval_samples_per_second": 18.331,
55
+ "eval_steps_per_second": 2.343,
56
+ "step": 10
57
+ },
58
+ {
59
+ "epoch": 0.04,
60
+ "step": 10,
61
+ "total_flos": 0.0,
62
+ "train_loss": 2.0306697309017183,
63
+ "train_runtime": 22.46,
64
+ "train_samples_per_second": 1.781,
65
+ "train_steps_per_second": 0.445
66
+ }
67
+ ],
68
+ "max_steps": 10,
69
+ "num_train_epochs": 1,
70
+ "total_flos": 0.0,
71
+ "trial_name": null,
72
+ "trial_params": null
73
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcc92e4979f1891f02dc4b6fb146df44e02e1bc343c1a585c2d937b41197eb7d
3
+ size 2671