Upload CustomViltForVQA
Browse files- config.json +212 -212
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -1,234 +1,234 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "dandelin/vilt-b32-finetuned-vqa",
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 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": "
|
| 12 |
-
"1": "
|
| 13 |
-
"2": "
|
| 14 |
-
"3": "
|
| 15 |
-
"4": "
|
| 16 |
-
"5": "
|
| 17 |
-
"6": "
|
| 18 |
-
"7": "
|
| 19 |
-
"8": "
|
| 20 |
-
"9": "
|
| 21 |
-
"10": "
|
| 22 |
-
"11": "
|
| 23 |
-
"12": "
|
| 24 |
-
"13": "
|
| 25 |
-
"14": "
|
| 26 |
-
"15": "
|
| 27 |
-
"16": "
|
| 28 |
-
"17": "
|
| 29 |
-
"18": "
|
| 30 |
-
"19": "
|
| 31 |
-
"20": "
|
| 32 |
-
"21": "
|
| 33 |
-
"22": "
|
| 34 |
-
"23": "
|
| 35 |
-
"24": "
|
| 36 |
-
"25": "
|
| 37 |
-
"26": "
|
| 38 |
-
"27": "
|
| 39 |
-
"28": "
|
| 40 |
-
"29": "
|
| 41 |
-
"30": "
|
| 42 |
-
"31": "
|
| 43 |
-
"32": "
|
| 44 |
-
"33": "
|
| 45 |
-
"34": "
|
| 46 |
"35": "Right",
|
| 47 |
-
"36": "
|
| 48 |
-
"37": "
|
| 49 |
-
"38": "
|
| 50 |
-
"39": "
|
| 51 |
-
"40": "
|
| 52 |
-
"41": "
|
| 53 |
-
"42": "
|
| 54 |
-
"43": "
|
| 55 |
-
"44": "
|
| 56 |
-
"45": "
|
| 57 |
-
"46": "
|
| 58 |
-
"47": "
|
| 59 |
-
"48": "
|
| 60 |
-
"49": "
|
| 61 |
-
"50": "
|
| 62 |
-
"51": "
|
| 63 |
-
"52": "
|
| 64 |
-
"53": "
|
| 65 |
-
"54": "
|
| 66 |
-
"55": "
|
| 67 |
"56": "hot dog",
|
| 68 |
-
"57": "
|
| 69 |
-
"58": "
|
| 70 |
-
"59": "
|
| 71 |
-
"60": "
|
| 72 |
-
"61": "
|
| 73 |
-
"62": "
|
| 74 |
-
"63": "
|
| 75 |
-
"64": "
|
| 76 |
-
"65": "
|
| 77 |
-
"66": "
|
| 78 |
-
"67": "
|
| 79 |
-
"68": "
|
| 80 |
-
"69": "
|
| 81 |
-
"70": "
|
| 82 |
-
"71": "
|
| 83 |
-
"72": "
|
| 84 |
-
"73": "
|
| 85 |
-
"74": "
|
| 86 |
-
"75": "
|
| 87 |
-
"76": "
|
| 88 |
-
"77": "
|
| 89 |
-
"78": "
|
| 90 |
-
"79": "
|
| 91 |
-
"80": "
|
| 92 |
-
"81": "
|
| 93 |
-
"82": "
|
| 94 |
-
"83": "
|
| 95 |
-
"84": "
|
| 96 |
-
"85": "
|
| 97 |
-
"86": "
|
| 98 |
-
"87": "
|
| 99 |
-
"88": "
|
| 100 |
-
"89": "
|
| 101 |
-
"90": "
|
| 102 |
-
"91": "
|
| 103 |
-
"92": "
|
| 104 |
-
"93": "
|
| 105 |
-
"94": "
|
| 106 |
-
"95": "
|
| 107 |
-
"96": "
|
| 108 |
"97": "Pink",
|
| 109 |
-
"98": "
|
| 110 |
-
"99": "
|
| 111 |
-
"100": "
|
| 112 |
-
"101": "
|
| 113 |
-
"102": "
|
| 114 |
-
"103": "
|
| 115 |
-
"104": "
|
| 116 |
-
"105": "
|
| 117 |
-
"106": "
|
| 118 |
-
"107": "
|
| 119 |
},
|
| 120 |
"image_size": 384,
|
| 121 |
"initializer_range": 0.02,
|
| 122 |
"intermediate_size": 3072,
|
| 123 |
"label2id": {
|
| 124 |
-
"0":
|
| 125 |
-
"1":
|
| 126 |
-
"2":
|
| 127 |
-
"3":
|
| 128 |
-
"4":
|
| 129 |
-
"5":
|
| 130 |
-
"6":
|
| 131 |
-
"7":
|
| 132 |
-
"8":
|
| 133 |
-
"9":
|
| 134 |
-
"Above":
|
| 135 |
-
"Behind":
|
| 136 |
-
"Below":
|
| 137 |
-
"Black":
|
| 138 |
-
"Blue":
|
| 139 |
-
"Brown":
|
| 140 |
-
"Front":
|
| 141 |
-
"Green":
|
| 142 |
-
"Grey":
|
| 143 |
-
"Left":
|
| 144 |
-
"No":
|
| 145 |
-
"Orange":
|
| 146 |
"Pink": 97,
|
| 147 |
-
"Purple":
|
| 148 |
-
"Red":
|
| 149 |
"Right": 35,
|
| 150 |
-
"White":
|
| 151 |
-
"Yellow":
|
| 152 |
-
"Yes":
|
| 153 |
-
"above":
|
| 154 |
-
"airplane":
|
| 155 |
-
"apple":
|
| 156 |
-
"banana":
|
| 157 |
-
"baseball bat":
|
| 158 |
-
"baseball glove":
|
| 159 |
-
"bear":
|
| 160 |
-
"bed":
|
| 161 |
-
"bench":
|
| 162 |
-
"bicycle":
|
| 163 |
-
"bird":
|
| 164 |
-
"boat":
|
| 165 |
-
"book":
|
| 166 |
-
"bottle":
|
| 167 |
-
"bowl":
|
| 168 |
-
"broccoli":
|
| 169 |
-
"bus":
|
| 170 |
-
"cake":
|
| 171 |
-
"car":
|
| 172 |
-
"carrot":
|
| 173 |
-
"cat":
|
| 174 |
-
"cell phone":
|
| 175 |
-
"chair":
|
| 176 |
-
"clock":
|
| 177 |
-
"couch":
|
| 178 |
-
"cow":
|
| 179 |
-
"cup":
|
| 180 |
-
"dining table":
|
| 181 |
-
"dog":
|
| 182 |
-
"donut":
|
| 183 |
-
"elephant":
|
| 184 |
-
"fire hydrant":
|
| 185 |
-
"fork":
|
| 186 |
-
"frisbee":
|
| 187 |
-
"giraffe":
|
| 188 |
-
"handbag":
|
| 189 |
-
"horse":
|
| 190 |
"hot dog": 56,
|
| 191 |
-
"keyboard":
|
| 192 |
-
"kite":
|
| 193 |
-
"knife":
|
| 194 |
-
"laptop":
|
| 195 |
-
"left":
|
| 196 |
-
"motorcycle":
|
| 197 |
-
"mouse":
|
| 198 |
-
"orange":
|
| 199 |
-
"oven":
|
| 200 |
-
"parking meter":
|
| 201 |
-
"person":
|
| 202 |
-
"pizza":
|
| 203 |
-
"potted plant":
|
| 204 |
-
"refrigerator":
|
| 205 |
-
"remote":
|
| 206 |
-
"right":
|
| 207 |
-
"sandwich":
|
| 208 |
-
"scissors":
|
| 209 |
-
"sheep":
|
| 210 |
-
"sink":
|
| 211 |
-
"skateboard":
|
| 212 |
-
"skis":
|
| 213 |
-
"snowboard":
|
| 214 |
-
"spoon":
|
| 215 |
-
"sports ball":
|
| 216 |
-
"stop sign":
|
| 217 |
-
"suitcase":
|
| 218 |
-
"surfboard":
|
| 219 |
-
"teddy bear":
|
| 220 |
-
"tennis racket":
|
| 221 |
-
"tie":
|
| 222 |
-
"toilet":
|
| 223 |
-
"toothbrush":
|
| 224 |
-
"traffic light":
|
| 225 |
-
"train":
|
| 226 |
-
"truck":
|
| 227 |
-
"tv":
|
| 228 |
-
"umbrella":
|
| 229 |
-
"vase":
|
| 230 |
-
"wine glass":
|
| 231 |
-
"zebra":
|
| 232 |
},
|
| 233 |
"layer_norm_eps": 1e-12,
|
| 234 |
"max_image_length": -1,
|
|
@@ -243,7 +243,7 @@
|
|
| 243 |
"qkv_bias": true,
|
| 244 |
"tie_word_embeddings": false,
|
| 245 |
"torch_dtype": "float32",
|
| 246 |
-
"transformers_version": "4.
|
| 247 |
"type_vocab_size": 2,
|
| 248 |
"vocab_size": 30522
|
| 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": "boat",
|
| 12 |
+
"1": "above",
|
| 13 |
+
"2": "apple",
|
| 14 |
+
"3": "clock",
|
| 15 |
+
"4": "9",
|
| 16 |
+
"5": "wine glass",
|
| 17 |
+
"6": "mouse",
|
| 18 |
+
"7": "2",
|
| 19 |
+
"8": "sheep",
|
| 20 |
+
"9": "couch",
|
| 21 |
+
"10": "snowboard",
|
| 22 |
+
"11": "Yes",
|
| 23 |
+
"12": "spoon",
|
| 24 |
+
"13": "sports ball",
|
| 25 |
+
"14": "handbag",
|
| 26 |
+
"15": "Blue",
|
| 27 |
+
"16": "5",
|
| 28 |
+
"17": "laptop",
|
| 29 |
+
"18": "toothbrush",
|
| 30 |
+
"19": "carrot",
|
| 31 |
+
"20": "cake",
|
| 32 |
+
"21": "dog",
|
| 33 |
+
"22": "White",
|
| 34 |
+
"23": "motorcycle",
|
| 35 |
+
"24": "chair",
|
| 36 |
+
"25": "train",
|
| 37 |
+
"26": "zebra",
|
| 38 |
+
"27": "6",
|
| 39 |
+
"28": "person",
|
| 40 |
+
"29": "parking meter",
|
| 41 |
+
"30": "Brown",
|
| 42 |
+
"31": "car",
|
| 43 |
+
"32": "sink",
|
| 44 |
+
"33": "right",
|
| 45 |
+
"34": "bear",
|
| 46 |
"35": "Right",
|
| 47 |
+
"36": "sandwich",
|
| 48 |
+
"37": "Grey",
|
| 49 |
+
"38": "Red",
|
| 50 |
+
"39": "surfboard",
|
| 51 |
+
"40": "bowl",
|
| 52 |
+
"41": "airplane",
|
| 53 |
+
"42": "potted plant",
|
| 54 |
+
"43": "7",
|
| 55 |
+
"44": "tv",
|
| 56 |
+
"45": "suitcase",
|
| 57 |
+
"46": "kite",
|
| 58 |
+
"47": "tennis racket",
|
| 59 |
+
"48": "bench",
|
| 60 |
+
"49": "0",
|
| 61 |
+
"50": "bed",
|
| 62 |
+
"51": "dining table",
|
| 63 |
+
"52": "No",
|
| 64 |
+
"53": "refrigerator",
|
| 65 |
+
"54": "giraffe",
|
| 66 |
+
"55": "Purple",
|
| 67 |
"56": "hot dog",
|
| 68 |
+
"57": "truck",
|
| 69 |
+
"58": "vase",
|
| 70 |
+
"59": "Orange",
|
| 71 |
+
"60": "tie",
|
| 72 |
+
"61": "broccoli",
|
| 73 |
+
"62": "umbrella",
|
| 74 |
+
"63": "Green",
|
| 75 |
+
"64": "left",
|
| 76 |
+
"65": "stop sign",
|
| 77 |
+
"66": "cat",
|
| 78 |
+
"67": "teddy bear",
|
| 79 |
+
"68": "bicycle",
|
| 80 |
+
"69": "orange",
|
| 81 |
+
"70": "3",
|
| 82 |
+
"71": "scissors",
|
| 83 |
+
"72": "baseball glove",
|
| 84 |
+
"73": "frisbee",
|
| 85 |
+
"74": "4",
|
| 86 |
+
"75": "keyboard",
|
| 87 |
+
"76": "banana",
|
| 88 |
+
"77": "bus",
|
| 89 |
+
"78": "1",
|
| 90 |
+
"79": "Black",
|
| 91 |
+
"80": "8",
|
| 92 |
+
"81": "fork",
|
| 93 |
+
"82": "baseball bat",
|
| 94 |
+
"83": "donut",
|
| 95 |
+
"84": "book",
|
| 96 |
+
"85": "Above",
|
| 97 |
+
"86": "skis",
|
| 98 |
+
"87": "oven",
|
| 99 |
+
"88": "Below",
|
| 100 |
+
"89": "cell phone",
|
| 101 |
+
"90": "Left",
|
| 102 |
+
"91": "fire hydrant",
|
| 103 |
+
"92": "Behind",
|
| 104 |
+
"93": "cup",
|
| 105 |
+
"94": "elephant",
|
| 106 |
+
"95": "pizza",
|
| 107 |
+
"96": "bird",
|
| 108 |
"97": "Pink",
|
| 109 |
+
"98": "knife",
|
| 110 |
+
"99": "skateboard",
|
| 111 |
+
"100": "horse",
|
| 112 |
+
"101": "Front",
|
| 113 |
+
"102": "Yellow",
|
| 114 |
+
"103": "traffic light",
|
| 115 |
+
"104": "remote",
|
| 116 |
+
"105": "cow",
|
| 117 |
+
"106": "toilet",
|
| 118 |
+
"107": "bottle"
|
| 119 |
},
|
| 120 |
"image_size": 384,
|
| 121 |
"initializer_range": 0.02,
|
| 122 |
"intermediate_size": 3072,
|
| 123 |
"label2id": {
|
| 124 |
+
"0": 49,
|
| 125 |
+
"1": 78,
|
| 126 |
+
"2": 7,
|
| 127 |
+
"3": 70,
|
| 128 |
+
"4": 74,
|
| 129 |
+
"5": 16,
|
| 130 |
+
"6": 27,
|
| 131 |
+
"7": 43,
|
| 132 |
+
"8": 80,
|
| 133 |
+
"9": 4,
|
| 134 |
+
"Above": 85,
|
| 135 |
+
"Behind": 92,
|
| 136 |
+
"Below": 88,
|
| 137 |
+
"Black": 79,
|
| 138 |
+
"Blue": 15,
|
| 139 |
+
"Brown": 30,
|
| 140 |
+
"Front": 101,
|
| 141 |
+
"Green": 63,
|
| 142 |
+
"Grey": 37,
|
| 143 |
+
"Left": 90,
|
| 144 |
+
"No": 52,
|
| 145 |
+
"Orange": 59,
|
| 146 |
"Pink": 97,
|
| 147 |
+
"Purple": 55,
|
| 148 |
+
"Red": 38,
|
| 149 |
"Right": 35,
|
| 150 |
+
"White": 22,
|
| 151 |
+
"Yellow": 102,
|
| 152 |
+
"Yes": 11,
|
| 153 |
+
"above": 1,
|
| 154 |
+
"airplane": 41,
|
| 155 |
+
"apple": 2,
|
| 156 |
+
"banana": 76,
|
| 157 |
+
"baseball bat": 82,
|
| 158 |
+
"baseball glove": 72,
|
| 159 |
+
"bear": 34,
|
| 160 |
+
"bed": 50,
|
| 161 |
+
"bench": 48,
|
| 162 |
+
"bicycle": 68,
|
| 163 |
+
"bird": 96,
|
| 164 |
+
"boat": 0,
|
| 165 |
+
"book": 84,
|
| 166 |
+
"bottle": 107,
|
| 167 |
+
"bowl": 40,
|
| 168 |
+
"broccoli": 61,
|
| 169 |
+
"bus": 77,
|
| 170 |
+
"cake": 20,
|
| 171 |
+
"car": 31,
|
| 172 |
+
"carrot": 19,
|
| 173 |
+
"cat": 66,
|
| 174 |
+
"cell phone": 89,
|
| 175 |
+
"chair": 24,
|
| 176 |
+
"clock": 3,
|
| 177 |
+
"couch": 9,
|
| 178 |
+
"cow": 105,
|
| 179 |
+
"cup": 93,
|
| 180 |
+
"dining table": 51,
|
| 181 |
+
"dog": 21,
|
| 182 |
+
"donut": 83,
|
| 183 |
+
"elephant": 94,
|
| 184 |
+
"fire hydrant": 91,
|
| 185 |
+
"fork": 81,
|
| 186 |
+
"frisbee": 73,
|
| 187 |
+
"giraffe": 54,
|
| 188 |
+
"handbag": 14,
|
| 189 |
+
"horse": 100,
|
| 190 |
"hot dog": 56,
|
| 191 |
+
"keyboard": 75,
|
| 192 |
+
"kite": 46,
|
| 193 |
+
"knife": 98,
|
| 194 |
+
"laptop": 17,
|
| 195 |
+
"left": 64,
|
| 196 |
+
"motorcycle": 23,
|
| 197 |
+
"mouse": 6,
|
| 198 |
+
"orange": 69,
|
| 199 |
+
"oven": 87,
|
| 200 |
+
"parking meter": 29,
|
| 201 |
+
"person": 28,
|
| 202 |
+
"pizza": 95,
|
| 203 |
+
"potted plant": 42,
|
| 204 |
+
"refrigerator": 53,
|
| 205 |
+
"remote": 104,
|
| 206 |
+
"right": 33,
|
| 207 |
+
"sandwich": 36,
|
| 208 |
+
"scissors": 71,
|
| 209 |
+
"sheep": 8,
|
| 210 |
+
"sink": 32,
|
| 211 |
+
"skateboard": 99,
|
| 212 |
+
"skis": 86,
|
| 213 |
+
"snowboard": 10,
|
| 214 |
+
"spoon": 12,
|
| 215 |
+
"sports ball": 13,
|
| 216 |
+
"stop sign": 65,
|
| 217 |
+
"suitcase": 45,
|
| 218 |
+
"surfboard": 39,
|
| 219 |
+
"teddy bear": 67,
|
| 220 |
+
"tennis racket": 47,
|
| 221 |
+
"tie": 60,
|
| 222 |
+
"toilet": 106,
|
| 223 |
+
"toothbrush": 18,
|
| 224 |
+
"traffic light": 103,
|
| 225 |
+
"train": 25,
|
| 226 |
+
"truck": 57,
|
| 227 |
+
"tv": 44,
|
| 228 |
+
"umbrella": 62,
|
| 229 |
+
"vase": 58,
|
| 230 |
+
"wine glass": 5,
|
| 231 |
+
"zebra": 26
|
| 232 |
},
|
| 233 |
"layer_norm_eps": 1e-12,
|
| 234 |
"max_image_length": -1,
|
|
|
|
| 243 |
"qkv_bias": true,
|
| 244 |
"tie_word_embeddings": false,
|
| 245 |
"torch_dtype": "float32",
|
| 246 |
+
"transformers_version": "4.35.2",
|
| 247 |
"type_vocab_size": 2,
|
| 248 |
"vocab_size": 30522
|
| 249 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 451805856
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6b0c4270fa9bd8aff01435a16088e82bf69fe503393723e7aa34ce09f5d80b1
|
| 3 |
size 451805856
|