Ashkchamp/BLIP-X_ray-captioning
Browse files- README.md +67 -0
- config.json +54 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: bsd-3-clause
|
4 |
+
base_model: Salesforce/blip-image-captioning-base
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: blip-finetuned-colab100
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# blip-finetuned-colab100
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [Salesforce/blip-image-captioning-base](https://huggingface.co/Salesforce/blip-image-captioning-base) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 1.1321
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 9e-06
|
39 |
+
- train_batch_size: 16
|
40 |
+
- eval_batch_size: 16
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 8
|
43 |
+
- total_train_batch_size: 128
|
44 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_steps: 50
|
47 |
+
- num_epochs: 20
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-------:|:----:|:---------------:|
|
54 |
+
| 1.6461 | 2.8889 | 150 | 1.6176 |
|
55 |
+
| 1.3112 | 5.7729 | 300 | 1.3691 |
|
56 |
+
| 1.1666 | 8.6570 | 450 | 1.2629 |
|
57 |
+
| 1.0682 | 11.5411 | 600 | 1.1961 |
|
58 |
+
| 0.9964 | 14.4251 | 750 | 1.1555 |
|
59 |
+
| 0.9756 | 17.3092 | 900 | 1.1321 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.51.3
|
65 |
+
- Pytorch 2.5.1+cu121
|
66 |
+
- Datasets 3.6.0
|
67 |
+
- Tokenizers 0.21.1
|
config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"BlipForConditionalGeneration"
|
4 |
+
],
|
5 |
+
"image_text_hidden_size": 256,
|
6 |
+
"initializer_factor": 1.0,
|
7 |
+
"initializer_range": 0.02,
|
8 |
+
"label_smoothing": 0.0,
|
9 |
+
"logit_scale_init_value": 2.6592,
|
10 |
+
"model_type": "blip",
|
11 |
+
"projection_dim": 512,
|
12 |
+
"text_config": {
|
13 |
+
"_attn_implementation_autoset": true,
|
14 |
+
"attention_probs_dropout_prob": 0.0,
|
15 |
+
"encoder_hidden_size": 768,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 768,
|
19 |
+
"initializer_factor": 1.0,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label_smoothing": 0.0,
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"max_position_embeddings": 512,
|
25 |
+
"model_type": "blip_text_model",
|
26 |
+
"num_attention_heads": 12,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"projection_dim": 768,
|
29 |
+
"torch_dtype": "float32",
|
30 |
+
"use_cache": true,
|
31 |
+
"vocab_size": 30524
|
32 |
+
},
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.51.3",
|
35 |
+
"vision_config": {
|
36 |
+
"_attn_implementation_autoset": true,
|
37 |
+
"attention_dropout": 0.0,
|
38 |
+
"dropout": 0.0,
|
39 |
+
"hidden_act": "gelu",
|
40 |
+
"hidden_size": 768,
|
41 |
+
"image_size": 384,
|
42 |
+
"initializer_factor": 1.0,
|
43 |
+
"initializer_range": 0.02,
|
44 |
+
"intermediate_size": 3072,
|
45 |
+
"layer_norm_eps": 1e-05,
|
46 |
+
"model_type": "blip_vision_model",
|
47 |
+
"num_attention_heads": 12,
|
48 |
+
"num_channels": 3,
|
49 |
+
"num_hidden_layers": 12,
|
50 |
+
"patch_size": 16,
|
51 |
+
"projection_dim": 512,
|
52 |
+
"torch_dtype": "float32"
|
53 |
+
}
|
54 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 30522,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.51.3"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2113a886926036f95357bfa648680e4c3ce2d6cd342b67bc1c8f9972aac8781
|
3 |
+
size 989717056
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b7740c4c805c413e8da4139b55787ebe52781603faea8b31cea7adf8157224c
|
3 |
+
size 5304
|