Model save
Browse files
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: nlpconnect/vit-gpt2-image-captioning
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- rouge
|
8 |
+
model-index:
|
9 |
+
- name: image-captioning-output
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# image-captioning-output
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [nlpconnect/vit-gpt2-image-captioning](https://huggingface.co/nlpconnect/vit-gpt2-image-captioning) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.5164
|
21 |
+
- Rouge1: 35.5267
|
22 |
+
- Rouge2: 12.254
|
23 |
+
- Rougel: 32.968
|
24 |
+
- Rougelsum: 32.9723
|
25 |
+
- Gen Len: 12.395
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 5e-05
|
45 |
+
- train_batch_size: 4
|
46 |
+
- eval_batch_size: 4
|
47 |
+
- seed: 42
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- num_epochs: 3.0
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
55 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|:-------:|:---------:|:-------:|
|
56 |
+
| 0.5193 | 0.25 | 500 | 0.5171 | 33.0319 | 10.364 | 30.6939 | 30.6888 | 12.1 |
|
57 |
+
| 0.4842 | 0.5 | 1000 | 0.5102 | 33.7318 | 10.8199 | 31.1842 | 31.18 | 11.3 |
|
58 |
+
| 0.4724 | 0.75 | 1500 | 0.5028 | 34.6981 | 11.4074 | 31.9128 | 31.9158 | 12.02 |
|
59 |
+
| 0.4632 | 1.0 | 2000 | 0.5012 | 35.9443 | 12.8742 | 33.4061 | 33.377 | 11.04 |
|
60 |
+
| 0.377 | 1.25 | 2500 | 0.5026 | 35.7745 | 12.2309 | 33.3234 | 33.3353 | 11.735 |
|
61 |
+
| 0.3819 | 1.5 | 3000 | 0.5018 | 36.0145 | 13.0296 | 33.5985 | 33.6182 | 12.285 |
|
62 |
+
| 0.3788 | 1.75 | 3500 | 0.5030 | 35.9016 | 12.5276 | 33.4995 | 33.5033 | 11.305 |
|
63 |
+
| 0.3654 | 2.0 | 4000 | 0.5020 | 36.2476 | 12.945 | 33.6453 | 33.6595 | 11.9 |
|
64 |
+
| 0.3102 | 2.25 | 4500 | 0.5146 | 36.1507 | 13.0072 | 33.3889 | 33.3786 | 12.305 |
|
65 |
+
| 0.3137 | 2.5 | 5000 | 0.5166 | 35.7413 | 12.5693 | 33.2646 | 33.2508 | 12.71 |
|
66 |
+
| 0.3111 | 2.75 | 5500 | 0.5171 | 35.5658 | 12.511 | 33.0581 | 33.0518 | 12.55 |
|
67 |
+
| 0.3023 | 3.0 | 6000 | 0.5164 | 35.5267 | 12.254 | 32.968 | 32.9723 | 12.395 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.40.0
|
73 |
+
- Pytorch 2.2.1+cu121
|
74 |
+
- Datasets 2.19.0
|
75 |
+
- Tokenizers 0.19.1
|
generation_config.json
CHANGED
@@ -3,5 +3,5 @@
|
|
3 |
"decoder_start_token_id": 50256,
|
4 |
"eos_token_id": 50256,
|
5 |
"pad_token_id": 50256,
|
6 |
-
"transformers_version": "4.
|
7 |
}
|
|
|
3 |
"decoder_start_token_id": 50256,
|
4 |
"eos_token_id": 50256,
|
5 |
"pad_token_id": 50256,
|
6 |
+
"transformers_version": "4.40.0"
|
7 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 956835520
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c929582c8aef9c0fde19eb81c097618b35da20cc53519adcfcc68439ad688444
|
3 |
size 956835520
|
runs/Apr23_22-52-06_829156eccac4/events.out.tfevents.1713912818.829156eccac4.508.1
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84970f5be17855cb9b3ba1b5f7e0df296a567526c49d0aa2015e34bda92af457
|
3 |
+
size 18302
|