Upload BlipForConditionalGeneration
Browse files- README.md +3 -3
- config.json +45 -42
- generation_config.json +7 -0
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -12,8 +12,8 @@ model-index:
|
|
| 12 |
- name: fabric_classifier
|
| 13 |
results:
|
| 14 |
- task:
|
| 15 |
-
name: Image Classification
|
| 16 |
type: image-classification
|
|
|
|
| 17 |
dataset:
|
| 18 |
name: arrow
|
| 19 |
type: arrow
|
|
@@ -21,9 +21,9 @@ model-index:
|
|
| 21 |
split: train
|
| 22 |
args: default
|
| 23 |
metrics:
|
| 24 |
-
-
|
| 25 |
-
type: accuracy
|
| 26 |
value: 0.5
|
|
|
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 12 |
- name: fabric_classifier
|
| 13 |
results:
|
| 14 |
- task:
|
|
|
|
| 15 |
type: image-classification
|
| 16 |
+
name: Image Classification
|
| 17 |
dataset:
|
| 18 |
name: arrow
|
| 19 |
type: arrow
|
|
|
|
| 21 |
split: train
|
| 22 |
args: default
|
| 23 |
metrics:
|
| 24 |
+
- type: accuracy
|
|
|
|
| 25 |
value: 0.5
|
| 26 |
+
name: Accuracy
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
config.json
CHANGED
|
@@ -1,49 +1,52 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
-
"attention_probs_dropout_prob": 0.0,
|
| 6 |
"dtype": "float32",
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"hidden_dropout_prob": 0.0,
|
| 10 |
-
"hidden_size": 768,
|
| 11 |
-
"id2label": {
|
| 12 |
-
"0": "Cotton",
|
| 13 |
-
"1": "Silk",
|
| 14 |
-
"2": "Wool",
|
| 15 |
-
"3": "Polyester",
|
| 16 |
-
"4": "Denim",
|
| 17 |
-
"5": "Velvet",
|
| 18 |
-
"6": "Chanderi Silk",
|
| 19 |
-
"7": "Acrylic",
|
| 20 |
-
"8": "Cotton Silk",
|
| 21 |
-
"9": "Linen"
|
| 22 |
-
},
|
| 23 |
-
"image_size": 224,
|
| 24 |
"initializer_range": 0.02,
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
},
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"BlipForConditionalGeneration"
|
| 4 |
],
|
|
|
|
| 5 |
"dtype": "float32",
|
| 6 |
+
"image_text_hidden_size": 256,
|
| 7 |
+
"initializer_factor": 1.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"initializer_range": 0.02,
|
| 9 |
+
"label_smoothing": 0.0,
|
| 10 |
+
"logit_scale_init_value": 2.6592,
|
| 11 |
+
"model_type": "blip",
|
| 12 |
+
"projection_dim": 512,
|
| 13 |
+
"text_config": {
|
| 14 |
+
"attention_probs_dropout_prob": 0.0,
|
| 15 |
+
"dtype": "float32",
|
| 16 |
+
"encoder_hidden_size": 768,
|
| 17 |
+
"hidden_act": "gelu",
|
| 18 |
+
"hidden_dropout_prob": 0.0,
|
| 19 |
+
"hidden_size": 768,
|
| 20 |
+
"initializer_factor": 1.0,
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 3072,
|
| 23 |
+
"label_smoothing": 0.0,
|
| 24 |
+
"layer_norm_eps": 1e-12,
|
| 25 |
+
"max_position_embeddings": 512,
|
| 26 |
+
"model_type": "blip_text_model",
|
| 27 |
+
"num_attention_heads": 12,
|
| 28 |
+
"num_hidden_layers": 12,
|
| 29 |
+
"projection_dim": 768,
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 30524
|
| 32 |
},
|
| 33 |
+
"transformers_version": "4.57.0",
|
| 34 |
+
"vision_config": {
|
| 35 |
+
"attention_dropout": 0.0,
|
| 36 |
+
"dropout": 0.0,
|
| 37 |
+
"dtype": "float32",
|
| 38 |
+
"hidden_act": "gelu",
|
| 39 |
+
"hidden_size": 768,
|
| 40 |
+
"image_size": 384,
|
| 41 |
+
"initializer_factor": 1.0,
|
| 42 |
+
"initializer_range": 0.02,
|
| 43 |
+
"intermediate_size": 3072,
|
| 44 |
+
"layer_norm_eps": 1e-05,
|
| 45 |
+
"model_type": "blip_vision_model",
|
| 46 |
+
"num_attention_heads": 12,
|
| 47 |
+
"num_channels": 3,
|
| 48 |
+
"num_hidden_layers": 12,
|
| 49 |
+
"patch_size": 16,
|
| 50 |
+
"projection_dim": 512
|
| 51 |
+
}
|
| 52 |
}
|
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.57.0"
|
| 7 |
+
}
|
model.safetensors
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:026963a8993b3ad94f559582db605a5fbc7a8f647ee113d9428ec4d85abe609c
|
| 3 |
+
size 895947208
|