Jiyog/kitchen-object-resnet-18
Browse files- README.md +94 -0
- config.json +65 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
datasets:
|
| 6 |
+
- imagefolder
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
- f1
|
| 10 |
+
model-index:
|
| 11 |
+
- name: resnet-kitchen-object
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: imagefolder
|
| 18 |
+
type: imagefolder
|
| 19 |
+
config: default
|
| 20 |
+
split: validation
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.6101118133203695
|
| 26 |
+
- name: F1
|
| 27 |
+
type: f1
|
| 28 |
+
value: 0.6021708939263245
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 32 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 33 |
+
|
| 34 |
+
# resnet-kitchen-object
|
| 35 |
+
|
| 36 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on the imagefolder dataset.
|
| 37 |
+
It achieves the following results on the evaluation set:
|
| 38 |
+
- Loss: 1.2989
|
| 39 |
+
- Accuracy: 0.6101
|
| 40 |
+
- F1: 0.6022
|
| 41 |
+
|
| 42 |
+
## Model description
|
| 43 |
+
|
| 44 |
+
More information needed
|
| 45 |
+
|
| 46 |
+
## Intended uses & limitations
|
| 47 |
+
|
| 48 |
+
More information needed
|
| 49 |
+
|
| 50 |
+
## Training and evaluation data
|
| 51 |
+
|
| 52 |
+
More information needed
|
| 53 |
+
|
| 54 |
+
## Training procedure
|
| 55 |
+
|
| 56 |
+
### Training hyperparameters
|
| 57 |
+
|
| 58 |
+
The following hyperparameters were used during training:
|
| 59 |
+
- learning_rate: 0.0003
|
| 60 |
+
- train_batch_size: 32
|
| 61 |
+
- eval_batch_size: 32
|
| 62 |
+
- seed: 42
|
| 63 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 64 |
+
- lr_scheduler_type: cosine
|
| 65 |
+
- lr_scheduler_warmup_ratio: 0.05
|
| 66 |
+
- num_epochs: 14
|
| 67 |
+
- mixed_precision_training: Native AMP
|
| 68 |
+
|
| 69 |
+
### Training results
|
| 70 |
+
|
| 71 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 72 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 73 |
+
| 2.3261 | 1.0 | 224 | 3.1962 | 0.2003 | 0.1597 |
|
| 74 |
+
| 2.0485 | 2.0 | 448 | 2.0192 | 0.2897 | 0.2667 |
|
| 75 |
+
| 1.8855 | 3.0 | 672 | 2.0079 | 0.3359 | 0.3114 |
|
| 76 |
+
| 1.8135 | 4.0 | 896 | 2.4398 | 0.2985 | 0.2768 |
|
| 77 |
+
| 1.7122 | 5.0 | 1120 | 1.7434 | 0.4127 | 0.3893 |
|
| 78 |
+
| 1.5719 | 6.0 | 1344 | 1.7204 | 0.4011 | 0.3928 |
|
| 79 |
+
| 1.4702 | 7.0 | 1568 | 1.5112 | 0.4886 | 0.4830 |
|
| 80 |
+
| 1.3995 | 8.0 | 1792 | 1.4794 | 0.4861 | 0.4804 |
|
| 81 |
+
| 1.2542 | 9.0 | 2016 | 1.6779 | 0.4677 | 0.4694 |
|
| 82 |
+
| 1.1446 | 10.0 | 2240 | 1.3876 | 0.5445 | 0.5359 |
|
| 83 |
+
| 1.0104 | 11.0 | 2464 | 1.3369 | 0.5863 | 0.5782 |
|
| 84 |
+
| 0.8867 | 12.0 | 2688 | 1.2919 | 0.5848 | 0.5821 |
|
| 85 |
+
| 0.738 | 13.0 | 2912 | 1.2914 | 0.6057 | 0.6026 |
|
| 86 |
+
| 0.7641 | 14.0 | 3136 | 1.2989 | 0.6101 | 0.6022 |
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
### Framework versions
|
| 90 |
+
|
| 91 |
+
- Transformers 4.57.1
|
| 92 |
+
- Pytorch 2.8.0+cu126
|
| 93 |
+
- Datasets 4.0.0
|
| 94 |
+
- Tokenizers 0.22.1
|
config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"dtype": "float32",
|
| 14 |
+
"embedding_size": 64,
|
| 15 |
+
"hidden_act": "relu",
|
| 16 |
+
"hidden_sizes": [
|
| 17 |
+
256,
|
| 18 |
+
512,
|
| 19 |
+
1024,
|
| 20 |
+
2048
|
| 21 |
+
],
|
| 22 |
+
"id2label": {
|
| 23 |
+
"0": "bowl",
|
| 24 |
+
"1": "fork",
|
| 25 |
+
"2": "glass",
|
| 26 |
+
"3": "knife",
|
| 27 |
+
"4": "mug",
|
| 28 |
+
"5": "pan",
|
| 29 |
+
"6": "plate",
|
| 30 |
+
"7": "spatula",
|
| 31 |
+
"8": "spoon",
|
| 32 |
+
"9": "whisk"
|
| 33 |
+
},
|
| 34 |
+
"image_size": 224,
|
| 35 |
+
"label2id": {
|
| 36 |
+
"bowl": "0",
|
| 37 |
+
"fork": "1",
|
| 38 |
+
"glass": "2",
|
| 39 |
+
"knife": "3",
|
| 40 |
+
"mug": "4",
|
| 41 |
+
"pan": "5",
|
| 42 |
+
"plate": "6",
|
| 43 |
+
"spatula": "7",
|
| 44 |
+
"spoon": "8",
|
| 45 |
+
"whisk": "9"
|
| 46 |
+
},
|
| 47 |
+
"layer_type": "bottleneck",
|
| 48 |
+
"model_type": "resnet",
|
| 49 |
+
"num_channels": 3,
|
| 50 |
+
"out_features": [
|
| 51 |
+
"stage4"
|
| 52 |
+
],
|
| 53 |
+
"out_indices": [
|
| 54 |
+
4
|
| 55 |
+
],
|
| 56 |
+
"problem_type": "single_label_classification",
|
| 57 |
+
"stage_names": [
|
| 58 |
+
"stem",
|
| 59 |
+
"stage1",
|
| 60 |
+
"stage2",
|
| 61 |
+
"stage3",
|
| 62 |
+
"stage4"
|
| 63 |
+
],
|
| 64 |
+
"transformers_version": "4.57.1"
|
| 65 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:541c9395d1ab1615a8cf8ac583df088ccc8c81d3546d7624ecc756b32ac1bb1d
|
| 3 |
+
size 94368544
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_pct": 0.875,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.485,
|
| 8 |
+
0.456,
|
| 9 |
+
0.406
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ConvNextImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.229,
|
| 14 |
+
0.224,
|
| 15 |
+
0.225
|
| 16 |
+
],
|
| 17 |
+
"resample": 3,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"shortest_edge": 224
|
| 21 |
+
}
|
| 22 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0bfb2962d99bde82dd0e64aa71db08233ac86ac55c6bba8ea82e5cd4448ede4
|
| 3 |
+
size 5841
|