File size: 14,208 Bytes
d617811 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# source: https://github.com/openai/CLIP/blob/main/notebooks/Prompt_Engineering_for_ImageNet.ipynb
IMAGENET_TEMPLATES = [
'a bad photo of a {}.',
'a photo of many {}.',
'a sculpture of a {}.',
'a photo of the hard to see {}.',
'a low resolution photo of the {}.',
'a rendering of a {}.',
'graffiti of a {}.',
'a bad photo of the {}.',
'a cropped photo of the {}.',
'a tattoo of a {}.',
'the embroidered {}.',
'a photo of a hard to see {}.',
'a bright photo of a {}.',
'a photo of a clean {}.',
'a photo of a dirty {}.',
'a dark photo of the {}.',
'a drawing of a {}.',
'a photo of my {}.',
'the plastic {}.',
'a photo of the cool {}.',
'a close-up photo of a {}.',
'a black and white photo of the {}.',
'a painting of the {}.',
'a painting of a {}.',
'a pixelated photo of the {}.',
'a sculpture of the {}.',
'a bright photo of the {}.',
'a cropped photo of a {}.',
'a plastic {}.',
'a photo of the dirty {}.',
'a jpeg corrupted photo of a {}.',
'a blurry photo of the {}.',
'a photo of the {}.',
'a good photo of the {}.',
'a rendering of the {}.',
'a {} in a video game.',
'a photo of one {}.',
'a doodle of a {}.',
'a close-up photo of the {}.',
'a photo of a {}.',
'the origami {}.',
'the {} in a video game.',
'a sketch of a {}.',
'a doodle of the {}.',
'a origami {}.',
'a low resolution photo of a {}.',
'the toy {}.',
'a rendition of the {}.',
'a photo of the clean {}.',
'a photo of a large {}.',
'a rendition of a {}.',
'a photo of a nice {}.',
'a photo of a weird {}.',
'a blurry photo of a {}.',
'a cartoon {}.',
'art of a {}.',
'a sketch of the {}.',
'a embroidered {}.',
'a pixelated photo of a {}.',
'itap of the {}.',
'a jpeg corrupted photo of the {}.',
'a good photo of a {}.',
'a plushie {}.',
'a photo of the nice {}.',
'a photo of the small {}.',
'a photo of the weird {}.',
'the cartoon {}.',
'art of the {}.',
'a drawing of the {}.',
'a photo of the large {}.',
'a black and white photo of a {}.',
'the plushie {}.',
'a dark photo of a {}.',
'itap of a {}.',
'graffiti of the {}.',
'a toy {}.',
'itap of my {}.',
'a photo of a cool {}.',
'a photo of a small {}.',
'a tattoo of the {}.',
# 'A photo of a {} in the scene.',
]
# v1: 59.0875
IMAGENET_TEMPLATES_SELECT = [
'itap of a {}.',
'a bad photo of the {}.',
'a origami {}.',
'a photo of the large {}.',
'a {} in a video game.',
'art of the {}.',
'a photo of the small {}.',
'A photo of a {} in the scene',
]
# v2: 58.2584
# IMAGENET_TEMPLATES_SELECT = [
# 'itap of a {}',
# 'a bad photo of the {}',
# 'a origami {}',
# 'a photo of the large {}',
# 'art of the {}',
# 'a photo of the small {}',
# 'A photo of a {} in the scene',
# ]
# v3: 59.1006
# IMAGENET_TEMPLATES_SELECT = [
# 'itap of a {}.',
# 'a bad photo of the {}.',
# 'a origami {}.',
# 'a photo of the large {}.',
# 'art of the {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'A photo of a {} in the scene',
# 'itap of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a origami {} in the scene',
# 'a photo of the large {} in the scene',
# 'art of the {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# ]
# v4: 59.8659
# IMAGENET_TEMPLATES_SELECT = [
# 'a bad photo of the {}.',
# 'a photo of the large {}.',
# 'art of the {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'A photo of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a photo of the large {} in the scene',
# 'art of the {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# 'a photo of a masked {} in the scene',
# ]
# v5: 59.9346
# IMAGENET_TEMPLATES_SELECT = [
# 'a bad photo of the {}.',
# 'a photo of the large {}.',
# 'art of the {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
# 'A photo of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a photo of the large {} in the scene',
# 'art of the {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# 'a photo of a masked {} in the scene',
# 'There is a {} in the scene',
# 'There is the {} in the scene',
# 'This is a {} in the scene',
# 'This is the {} in the scene',
# 'This is one {} in the scene',
# ]
# v6: 60.6611
# IMAGENET_TEMPLATES_SELECT = [
# 'a bad photo of the {}.',
# 'a photo of the large {}.',
# 'art of the {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
# 'A photo of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a photo of the large {} in the scene',
# 'art of the {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# 'a photo of a masked {} in the scene',
# 'There is a {} in the scene',
# 'There is the {} in the scene',
# 'This is a {} in the scene',
# 'This is the {} in the scene',
# 'This is one {} in the scene',
#
# 'There is a masked {} in the scene',
# 'There is the masked {} in the scene',
# 'This is a masked {} in the scene',
# 'This is the masked {} in the scene',
# 'This is one masked {} in the scene',
# ]
# v7: 60.4529
# IMAGENET_TEMPLATES_SELECT = [
# 'a bad photo of the {}.',
# 'a photo of the large {}.',
# 'art of the {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
# 'A photo of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a photo of the large {} in the scene',
# 'art of the {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# 'a photo of a masked {} in the scene',
# 'There is a {} in the scene',
# 'There is the {} in the scene',
# 'This is a {} in the scene',
# 'This is the {} in the scene',
# 'This is one {} in the scene',
#
# 'There is a cropped {} in the scene',
# 'There is the cropped {} in the scene',
# 'This is a cropped {} in the scene',
# 'This is the cropped {} in the scene',
# 'This is one cropped {} in the scene',
#
# 'a cropped photo of the {}',
# 'a cropped photo of a {}',
# 'a cropped photo of one {}',
#
# 'There is a masked {} in the scene',
# 'There is the masked {} in the scene',
# 'This is a masked {} in the scene',
# 'This is the masked {} in the scene',
# 'This is one masked {} in the scene',
# ]
# v8: 60.7057
# IMAGENET_TEMPLATES_SELECT = [
# 'a bad photo of the {}.',
# 'a photo of the large {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
#
# 'This is a masked photo of a {}',
# 'This is a masked photo of a small {}',
# 'This is a masked photo of a medium {}',
# 'This is a masked photo of a large {}',
#
# 'A photo of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a photo of the large {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# 'a photo of a masked {} in the scene',
# 'There is a {} in the scene',
# 'There is the {} in the scene',
# 'This is a {} in the scene',
# 'This is the {} in the scene',
# 'This is one {} in the scene',
#
# 'There is a masked {} in the scene',
# 'There is the masked {} in the scene',
# 'This is a masked {} in the scene',
# 'This is the masked {} in the scene',
# 'This is one masked {} in the scene',
# ]
# v9: 60.8775
# IMAGENET_TEMPLATES_SELECT = [
# 'a bad photo of the {}.',
# 'a photo of the large {}.',
# 'a photo of the small {}.',
# 'a cropped photo of a {}.',
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
#
# 'This is a masked photo of a {}',
# 'This is a masked photo of a small {}',
# 'This is a masked photo of a medium {}',
# 'This is a masked photo of a large {}',
#
# 'This is a cropped photo of a {}',
# 'This is a cropped photo of a small {}',
# 'This is a cropped photo of a medium {}',
# 'This is a cropped photo of a large {}',
#
# 'A photo of a {} in the scene',
# 'a bad photo of the {} in the scene',
# 'a photo of the large {} in the scene',
# 'a photo of the small {} in the scene',
# 'a cropped photo of a {} in the scene',
# 'a photo of a masked {} in the scene',
# 'There is a {} in the scene',
# 'There is the {} in the scene',
# 'This is a {} in the scene',
# 'This is the {} in the scene',
# 'This is one {} in the scene',
#
# 'There is a masked {} in the scene',
# 'There is the masked {} in the scene',
# 'This is a masked {} in the scene',
# 'This is the masked {} in the scene',
# 'This is one masked {} in the scene',
# ]
# v9
IMAGENET_TEMPLATES_SELECT_CLIP = [
'a bad photo of the {}.',
'a photo of the large {}.',
'a photo of the small {}.',
'a cropped photo of a {}.',
'This is a photo of a {}',
'This is a photo of a small {}',
'This is a photo of a medium {}',
'This is a photo of a large {}',
'This is a masked photo of a {}',
'This is a masked photo of a small {}',
'This is a masked photo of a medium {}',
'This is a masked photo of a large {}',
'This is a cropped photo of a {}',
'This is a cropped photo of a small {}',
'This is a cropped photo of a medium {}',
'This is a cropped photo of a large {}',
'A photo of a {} in the scene',
'a bad photo of the {} in the scene',
'a photo of the large {} in the scene',
'a photo of the small {} in the scene',
'a cropped photo of a {} in the scene',
'a photo of a masked {} in the scene',
'There is a {} in the scene',
'There is the {} in the scene',
'This is a {} in the scene',
'This is the {} in the scene',
'This is one {} in the scene',
'There is a masked {} in the scene',
'There is the masked {} in the scene',
'This is a masked {} in the scene',
'This is the masked {} in the scene',
'This is one masked {} in the scene',
]
# v10, for comparison
# IMAGENET_TEMPLATES_SELECT_CLIP = [
# 'a photo of a {}.',
#
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
#
# 'This is a photo of a {}',
# 'This is a photo of a small {}',
# 'This is a photo of a medium {}',
# 'This is a photo of a large {}',
#
# 'a photo of a {} in the scene',
# 'a photo of a {} in the scene',
#
# 'There is a {} in the scene',
# 'There is the {} in the scene',
# 'This is a {} in the scene',
# 'This is the {} in the scene',
# 'This is one {} in the scene',
# ]
ViLD_templates = [
'There is {article} {category} in the scene.',
'There is the {category} in the scene.',
'a photo of {article} {category} in the scene.',
'a photo of the {category} in the scene.',
'a photo of one {category} in the scene.',
'itap of {article} {category}.',
'itap of my {category}.',
'itap of the {category}.',
'a photo of {article} {category}.',
'a photo of my {category}.',
'a photo of the {category}.',
'a photo of one {category}.',
'a photo of many {category}.',
'a good photo of {article} {category}.',
'a good photo of the {category}.',
'a bad photo of {article} {category}.',
'a bad photo of the {category}.',
'a photo of a nice {category}.',
'a photo of the nice {category}.',
'a photo of a cool {category}.',
'a photo of the cool {category}.',
'a photo of a weird {category}.',
'a photo of the weird {category}.',
'a photo of a small {category}.',
'a photo of the small {category}.',
'a photo of a large {category}.',
'a photo of the large {category}.',
'a photo of a clean {category}.',
'a photo of the clean {category}.',
'a photo of a dirty {category}.',
'a photo of the dirty {category}.',
'a bright photo of {article} {category}.',
'a bright photo of the {category}.',
'a dark photo of {article} {category}.',
'a dark photo of the {category}.',
'a photo of a hard to see {category}.',
'a photo of the hard to see {category}.',
'a low resolution photo of {article} {category}.',
'a low resolution photo of the {category}.',
'a cropped photo of {article} {category}.',
'a cropped photo of the {category}.',
'a close-up photo of {article} {category}.',
'a close-up photo of the {category}.',
'a jpeg corrupted photo of {article} {category}.',
'a jpeg corrupted photo of the {category}.',
'a blurry photo of {article} {category}.',
'a blurry photo of the {category}.',
'a pixelated photo of {article} {category}.',
'a pixelated photo of the {category}.',
'a black and white photo of the {category}.',
'a black and white photo of {article} {category}.',
'a plastic {category}.',
'the plastic {category}.',
'a toy {category}.',
'the toy {category}.',
'a plushie {category}.',
'the plushie {category}.',
'a cartoon {category}.',
'the cartoon {category}.',
'an embroidered {category}.',
'the embroidered {category}.',
'a painting of the {category}.',
'a painting of a {category}.'
] |