sanali209/imclasif-genres-v001
Browse files- README.md +41 -28
- config.json +10 -10
- model.safetensors +1 -1
- preprocessor_config.json +1 -1
- training_args.bin +3 -0
README.md
CHANGED
@@ -1,47 +1,60 @@
|
|
1 |
---
|
2 |
tags:
|
3 |
-
-
|
4 |
-
|
5 |
-
-
|
6 |
-
metrics:
|
7 |
-
- accuracy
|
8 |
-
|
9 |
model-index:
|
10 |
-
- name:
|
11 |
-
results:
|
12 |
-
- task:
|
13 |
-
name: Image Classification
|
14 |
-
type: image-classification
|
15 |
-
metrics:
|
16 |
-
- name: Accuracy
|
17 |
-
type: accuracy
|
18 |
-
value: 0.8783348202705383
|
19 |
---
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
23 |
|
24 |
-
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
29 |
|
|
|
30 |
|
31 |
-
|
32 |
|
33 |
-
##
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
-
pixel art
|
44 |
|
45 |
-
|
46 |
|
47 |
-
|
|
|
|
|
|
|
|
1 |
---
|
2 |
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
datasets:
|
5 |
+
- imagefolder
|
|
|
|
|
|
|
6 |
model-index:
|
7 |
+
- name: imclasif-genres-v001
|
8 |
+
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# imclasif-genres-v001
|
15 |
+
|
16 |
+
This model was trained from scratch on the imagefolder dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 1.0340
|
19 |
|
20 |
+
## Model description
|
21 |
|
22 |
+
More information needed
|
23 |
|
24 |
+
## Intended uses & limitations
|
25 |
|
26 |
+
More information needed
|
27 |
|
28 |
+
## Training and evaluation data
|
29 |
|
30 |
+
More information needed
|
31 |
|
32 |
+
## Training procedure
|
33 |
|
34 |
+
### Training hyperparameters
|
35 |
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-05
|
38 |
+
- train_batch_size: 32
|
39 |
+
- eval_batch_size: 16
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- num_epochs: 4
|
44 |
|
45 |
+
### Training results
|
46 |
|
47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
+
| No log | 1.0 | 54 | 1.2259 |
|
50 |
+
| No log | 2.0 | 108 | 1.0907 |
|
51 |
+
| No log | 3.0 | 162 | 1.0382 |
|
52 |
+
| No log | 4.0 | 216 | 1.0340 |
|
53 |
|
|
|
54 |
|
55 |
+
### Framework versions
|
56 |
|
57 |
+
- Transformers 4.44.0
|
58 |
+
- Pytorch 2.3.1+cu121
|
59 |
+
- Datasets 2.20.0
|
60 |
+
- Tokenizers 0.19.1
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -9,7 +9,7 @@
|
|
9 |
"hidden_dropout_prob": 0.0,
|
10 |
"hidden_size": 768,
|
11 |
"id2label": {
|
12 |
-
"0": "3d
|
13 |
"1": "combined",
|
14 |
"2": "drawing",
|
15 |
"3": "other",
|
@@ -21,13 +21,13 @@
|
|
21 |
"initializer_range": 0.02,
|
22 |
"intermediate_size": 3072,
|
23 |
"label2id": {
|
24 |
-
"3d
|
25 |
-
"combined":
|
26 |
-
"drawing":
|
27 |
-
"other":
|
28 |
-
"photo":
|
29 |
-
"pixel art":
|
30 |
-
"text":
|
31 |
},
|
32 |
"layer_norm_eps": 1e-12,
|
33 |
"model_type": "vit",
|
@@ -38,5 +38,5 @@
|
|
38 |
"problem_type": "single_label_classification",
|
39 |
"qkv_bias": true,
|
40 |
"torch_dtype": "float32",
|
41 |
-
"transformers_version": "4.
|
42 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "sanali209/imclasif-genres-v001",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
9 |
"hidden_dropout_prob": 0.0,
|
10 |
"hidden_size": 768,
|
11 |
"id2label": {
|
12 |
+
"0": "3d renderer",
|
13 |
"1": "combined",
|
14 |
"2": "drawing",
|
15 |
"3": "other",
|
|
|
21 |
"initializer_range": 0.02,
|
22 |
"intermediate_size": 3072,
|
23 |
"label2id": {
|
24 |
+
"3d renderer": 0,
|
25 |
+
"combined": 1,
|
26 |
+
"drawing": 2,
|
27 |
+
"other": 3,
|
28 |
+
"photo": 4,
|
29 |
+
"pixel art": 5,
|
30 |
+
"text": 6
|
31 |
},
|
32 |
"layer_norm_eps": 1e-12,
|
33 |
"model_type": "vit",
|
|
|
38 |
"problem_type": "single_label_classification",
|
39 |
"qkv_bias": true,
|
40 |
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.44.0"
|
42 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343239356
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69ac4d625b25aa1a8ba203eb98bc93ebbf39817ad9d6a8731aea04b6c4d1bb9f
|
3 |
size 343239356
|
preprocessor_config.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
0.5,
|
8 |
0.5
|
9 |
],
|
10 |
-
"image_processor_type": "
|
11 |
"image_std": [
|
12 |
0.5,
|
13 |
0.5,
|
|
|
7 |
0.5,
|
8 |
0.5
|
9 |
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
"image_std": [
|
12 |
0.5,
|
13 |
0.5,
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba8806f1f99d2a0b91af3490ef0a113f0a85f281ca0b04a2d98f6ee20c7c91f7
|
3 |
+
size 5176
|