phonghoccode commited on
Commit
a52f7e8
·
verified ·
1 Parent(s): b051dee

Upload CustomViltForVQA

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +249 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dandelin/vilt-b32-finetuned-vqa",
3
+ "architectures": [
4
+ "CustomViltForVQA"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "potted plant",
12
+ "1": "cell phone",
13
+ "2": "stop sign",
14
+ "3": "dog",
15
+ "4": "laptop",
16
+ "5": "frisbee",
17
+ "6": "sports ball",
18
+ "7": "cup",
19
+ "8": "mouse",
20
+ "9": "elephant",
21
+ "10": "3",
22
+ "11": "toothbrush",
23
+ "12": "vase",
24
+ "13": "airplane",
25
+ "14": "right",
26
+ "15": "Behind",
27
+ "16": "Front",
28
+ "17": "skateboard",
29
+ "18": "knife",
30
+ "19": "toilet",
31
+ "20": "No",
32
+ "21": "left",
33
+ "22": "Brown",
34
+ "23": "cow",
35
+ "24": "bear",
36
+ "25": "boat",
37
+ "26": "bird",
38
+ "27": "skis",
39
+ "28": "baseball glove",
40
+ "29": "oven",
41
+ "30": "Grey",
42
+ "31": "parking meter",
43
+ "32": "horse",
44
+ "33": "couch",
45
+ "34": "orange",
46
+ "35": "White",
47
+ "36": "Purple",
48
+ "37": "Left",
49
+ "38": "surfboard",
50
+ "39": "truck",
51
+ "40": "tv",
52
+ "41": "traffic light",
53
+ "42": "pizza",
54
+ "43": "banana",
55
+ "44": "tie",
56
+ "45": "train",
57
+ "46": "remote",
58
+ "47": "bottle",
59
+ "48": "bus",
60
+ "49": "Blue",
61
+ "50": "person",
62
+ "51": "tennis racket",
63
+ "52": "broccoli",
64
+ "53": "bed",
65
+ "54": "4",
66
+ "55": "keyboard",
67
+ "56": "cat",
68
+ "57": "sink",
69
+ "58": "Yes",
70
+ "59": "dining table",
71
+ "60": "cake",
72
+ "61": "Green",
73
+ "62": "snowboard",
74
+ "63": "Above",
75
+ "64": "Right",
76
+ "65": "above",
77
+ "66": "giraffe",
78
+ "67": "refrigerator",
79
+ "68": "9",
80
+ "69": "kite",
81
+ "70": "book",
82
+ "71": "suitcase",
83
+ "72": "bicycle",
84
+ "73": "motorcycle",
85
+ "74": "1",
86
+ "75": "2",
87
+ "76": "carrot",
88
+ "77": "6",
89
+ "78": "Black",
90
+ "79": "5",
91
+ "80": "wine glass",
92
+ "81": "8",
93
+ "82": "7",
94
+ "83": "scissors",
95
+ "84": "sheep",
96
+ "85": "sandwich",
97
+ "86": "clock",
98
+ "87": "handbag",
99
+ "88": "hot dog",
100
+ "89": "bowl",
101
+ "90": "Pink",
102
+ "91": "chair",
103
+ "92": "fire hydrant",
104
+ "93": "donut",
105
+ "94": "fork",
106
+ "95": "0",
107
+ "96": "Red",
108
+ "97": "teddy bear",
109
+ "98": "apple",
110
+ "99": "Yellow",
111
+ "100": "bench",
112
+ "101": "baseball bat",
113
+ "102": "umbrella",
114
+ "103": "zebra",
115
+ "104": "spoon",
116
+ "105": "Orange",
117
+ "106": "Below",
118
+ "107": "car"
119
+ },
120
+ "image_size": 384,
121
+ "initializer_range": 0.02,
122
+ "intermediate_size": 3072,
123
+ "label2id": {
124
+ "0": 95,
125
+ "1": 74,
126
+ "2": 75,
127
+ "3": 10,
128
+ "4": 54,
129
+ "5": 79,
130
+ "6": 77,
131
+ "7": 82,
132
+ "8": 81,
133
+ "9": 68,
134
+ "Above": 63,
135
+ "Behind": 15,
136
+ "Below": 106,
137
+ "Black": 78,
138
+ "Blue": 49,
139
+ "Brown": 22,
140
+ "Front": 16,
141
+ "Green": 61,
142
+ "Grey": 30,
143
+ "Left": 37,
144
+ "No": 20,
145
+ "Orange": 105,
146
+ "Pink": 90,
147
+ "Purple": 36,
148
+ "Red": 96,
149
+ "Right": 64,
150
+ "White": 35,
151
+ "Yellow": 99,
152
+ "Yes": 58,
153
+ "above": 65,
154
+ "airplane": 13,
155
+ "apple": 98,
156
+ "banana": 43,
157
+ "baseball bat": 101,
158
+ "baseball glove": 28,
159
+ "bear": 24,
160
+ "bed": 53,
161
+ "bench": 100,
162
+ "bicycle": 72,
163
+ "bird": 26,
164
+ "boat": 25,
165
+ "book": 70,
166
+ "bottle": 47,
167
+ "bowl": 89,
168
+ "broccoli": 52,
169
+ "bus": 48,
170
+ "cake": 60,
171
+ "car": 107,
172
+ "carrot": 76,
173
+ "cat": 56,
174
+ "cell phone": 1,
175
+ "chair": 91,
176
+ "clock": 86,
177
+ "couch": 33,
178
+ "cow": 23,
179
+ "cup": 7,
180
+ "dining table": 59,
181
+ "dog": 3,
182
+ "donut": 93,
183
+ "elephant": 9,
184
+ "fire hydrant": 92,
185
+ "fork": 94,
186
+ "frisbee": 5,
187
+ "giraffe": 66,
188
+ "handbag": 87,
189
+ "horse": 32,
190
+ "hot dog": 88,
191
+ "keyboard": 55,
192
+ "kite": 69,
193
+ "knife": 18,
194
+ "laptop": 4,
195
+ "left": 21,
196
+ "motorcycle": 73,
197
+ "mouse": 8,
198
+ "orange": 34,
199
+ "oven": 29,
200
+ "parking meter": 31,
201
+ "person": 50,
202
+ "pizza": 42,
203
+ "potted plant": 0,
204
+ "refrigerator": 67,
205
+ "remote": 46,
206
+ "right": 14,
207
+ "sandwich": 85,
208
+ "scissors": 83,
209
+ "sheep": 84,
210
+ "sink": 57,
211
+ "skateboard": 17,
212
+ "skis": 27,
213
+ "snowboard": 62,
214
+ "spoon": 104,
215
+ "sports ball": 6,
216
+ "stop sign": 2,
217
+ "suitcase": 71,
218
+ "surfboard": 38,
219
+ "teddy bear": 97,
220
+ "tennis racket": 51,
221
+ "tie": 44,
222
+ "toilet": 19,
223
+ "toothbrush": 11,
224
+ "traffic light": 41,
225
+ "train": 45,
226
+ "truck": 39,
227
+ "tv": 40,
228
+ "umbrella": 102,
229
+ "vase": 12,
230
+ "wine glass": 80,
231
+ "zebra": 103
232
+ },
233
+ "layer_norm_eps": 1e-12,
234
+ "max_image_length": -1,
235
+ "max_position_embeddings": 40,
236
+ "modality_type_vocab_size": 2,
237
+ "model_type": "vilt",
238
+ "num_attention_heads": 12,
239
+ "num_channels": 3,
240
+ "num_hidden_layers": 12,
241
+ "num_images": -1,
242
+ "patch_size": 32,
243
+ "qkv_bias": true,
244
+ "tie_word_embeddings": false,
245
+ "torch_dtype": "float32",
246
+ "transformers_version": "4.47.0",
247
+ "type_vocab_size": 2,
248
+ "vocab_size": 30522
249
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85c2d34454baed6f5e6e338be3937ff748194cca397ecec7b65f353b824b8cb8
3
+ size 446736704