0x-Jayveersinh-Raj commited on
Commit
bfffb10
·
verified ·
1 Parent(s): 83658a1

Upload BlipForConditionalGeneration

Browse files
Files changed (4) hide show
  1. README.md +3 -3
  2. config.json +45 -42
  3. generation_config.json +7 -0
  4. 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
- - name: Accuracy
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
- "ViTForImageClassification"
4
  ],
5
- "attention_probs_dropout_prob": 0.0,
6
  "dtype": "float32",
7
- "encoder_stride": 16,
8
- "hidden_act": "gelu",
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
- "intermediate_size": 3072,
26
- "label2id": {
27
- "Acrylic": 7,
28
- "Chanderi Silk": 6,
29
- "Cotton": 0,
30
- "Cotton Silk": 8,
31
- "Denim": 4,
32
- "Linen": 9,
33
- "Polyester": 3,
34
- "Silk": 1,
35
- "Velvet": 5,
36
- "Wool": 2
 
 
 
 
 
 
 
 
 
 
 
37
  },
38
- "layer_norm_eps": 1e-12,
39
- "model_type": "vit",
40
- "num_attention_heads": 12,
41
- "num_channels": 3,
42
- "num_hidden_layers": 12,
43
- "patch_size": 16,
44
- "pooler_act": "tanh",
45
- "pooler_output_size": 768,
46
- "problem_type": "single_label_classification",
47
- "qkv_bias": true,
48
- "transformers_version": "4.57.0"
 
 
 
 
 
 
 
 
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:c8ccedadf31fe966c7da4bfafc90fcac24808aee4a81772fea67adbc1b1e3055
3
- size 343248584
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:026963a8993b3ad94f559582db605a5fbc7a8f647ee113d9428ec4d85abe609c
3
+ size 895947208