Training in progress, epoch 5
Browse files
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: microsoft/resnet-50
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: trash_classifier2
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Image Classification
|
16 |
+
type: image-classification
|
17 |
+
dataset:
|
18 |
+
name: imagefolder
|
19 |
+
type: imagefolder
|
20 |
+
config: default
|
21 |
+
split: train
|
22 |
+
args: default
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value: 0.0
|
27 |
+
---
|
28 |
+
|
29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
30 |
+
should probably proofread and complete it, then remove this comment. -->
|
31 |
+
|
32 |
+
# trash_classifier2
|
33 |
+
|
34 |
+
This model is a fine-tuned version of [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50) on the imagefolder dataset.
|
35 |
+
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 2.0609
|
37 |
+
- Accuracy: 0.0
|
38 |
+
|
39 |
+
## Model description
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Intended uses & limitations
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training and evaluation data
|
48 |
+
|
49 |
+
More information needed
|
50 |
+
|
51 |
+
## Training procedure
|
52 |
+
|
53 |
+
### Training hyperparameters
|
54 |
+
|
55 |
+
The following hyperparameters were used during training:
|
56 |
+
- learning_rate: 2e-05
|
57 |
+
- train_batch_size: 16
|
58 |
+
- eval_batch_size: 16
|
59 |
+
- seed: 42
|
60 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
+
- lr_scheduler_type: linear
|
62 |
+
- num_epochs: 5
|
63 |
+
- mixed_precision_training: Native AMP
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
69 |
+
| 1.6961 | 1.0 | 102 | 2.0057 | 0.0025 |
|
70 |
+
| 1.5847 | 2.0 | 204 | 2.0374 | 0.0 |
|
71 |
+
| 1.6453 | 3.0 | 306 | 2.0752 | 0.0 |
|
72 |
+
| 1.3198 | 4.0 | 408 | 2.0695 | 0.0 |
|
73 |
+
| 1.3111 | 5.0 | 510 | 2.0609 | 0.0 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.55.2
|
79 |
+
- Pytorch 2.8.0+cu126
|
80 |
+
- Datasets 4.0.0
|
81 |
+
- Tokenizers 0.21.4
|
config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"ResNetForImageClassification"
|
4 |
+
],
|
5 |
+
"depths": [
|
6 |
+
3,
|
7 |
+
4,
|
8 |
+
6,
|
9 |
+
3
|
10 |
+
],
|
11 |
+
"downsample_in_bottleneck": false,
|
12 |
+
"downsample_in_first_stage": false,
|
13 |
+
"embedding_size": 64,
|
14 |
+
"hidden_act": "relu",
|
15 |
+
"hidden_sizes": [
|
16 |
+
256,
|
17 |
+
512,
|
18 |
+
1024,
|
19 |
+
2048
|
20 |
+
],
|
21 |
+
"id2label": {
|
22 |
+
"0": "class_0",
|
23 |
+
"1": "class_1",
|
24 |
+
"2": "class_2",
|
25 |
+
"3": "class_3",
|
26 |
+
"4": "class_4",
|
27 |
+
"5": "class_5",
|
28 |
+
"6": "class_6"
|
29 |
+
},
|
30 |
+
"label2id": {
|
31 |
+
"class_0": 0,
|
32 |
+
"class_1": 1,
|
33 |
+
"class_2": 2,
|
34 |
+
"class_3": 3,
|
35 |
+
"class_4": 4,
|
36 |
+
"class_5": 5,
|
37 |
+
"class_6": 6
|
38 |
+
},
|
39 |
+
"layer_type": "bottleneck",
|
40 |
+
"model_type": "resnet",
|
41 |
+
"num_channels": 3,
|
42 |
+
"out_features": [
|
43 |
+
"stage4"
|
44 |
+
],
|
45 |
+
"out_indices": [
|
46 |
+
4
|
47 |
+
],
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"stage_names": [
|
50 |
+
"stem",
|
51 |
+
"stage1",
|
52 |
+
"stage2",
|
53 |
+
"stage3",
|
54 |
+
"stage4"
|
55 |
+
],
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.55.2"
|
58 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ba5f432375c34ce9a037ec2a66300d57b77c3bfa9303bd68a8c3f0aba4af563
|
3 |
+
size 94343948
|
runs/Aug26_07-48-44_cd801512fb3b/events.out.tfevents.1756194559.cd801512fb3b.784.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb36aa5139017ccdc22d491cae06aed01885984c7945c532cc4a7f5ce979fd7a
|
3 |
+
size 114322
|
runs/Aug26_07-58-05_cd801512fb3b/events.out.tfevents.1756195089.cd801512fb3b.784.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8d8208e8da8991d41027f3e8ccaaed3c7d67aef831ee5e664b6a302bc427c49
|
3 |
+
size 114371
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:820cb02cc5eb2718e180c97597a2e41a8d2ef48b8368382422786e0bbd61a787
|
3 |
+
size 5841
|