End of training
Browse files- README.md +81 -0
- config.json +58 -0
- model.safetensors +3 -0
- runs/Aug26_07-43-12_bb1f25fc4259/events.out.tfevents.1756194250.bb1f25fc4259.334.0 +3 -0
- training_args.bin +3 -0
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_classifier3
|
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.0018404907975460123
|
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_classifier3
|
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.0325
|
37 |
+
- Accuracy: 0.0018
|
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.7363 | 1.0 | 102 | 1.9884 | 0.0166 |
|
70 |
+
| 1.5557 | 2.0 | 204 | 2.0147 | 0.0037 |
|
71 |
+
| 1.664 | 3.0 | 306 | 2.0527 | 0.0012 |
|
72 |
+
| 1.3446 | 4.0 | 408 | 2.0362 | 0.0018 |
|
73 |
+
| 1.3102 | 5.0 | 510 | 2.0325 | 0.0018 |
|
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:63bae28441211547a7db68fcf64cbb968e7e0efc169f445efd02601665e324c9
|
3 |
+
size 94343948
|
runs/Aug26_07-43-12_bb1f25fc4259/events.out.tfevents.1756194250.bb1f25fc4259.334.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e5b67374d70b99d8abf90be976107020374711af8dc416c45e8b727b360261fa
|
3 |
+
size 114322
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f6a87abd163d3fbe30fc6a23c56c072a17cfb974c6059b2c7cfbe81c743062c6
|
3 |
+
size 5841
|