jw2yang commited on
Commit
92144aa
1 Parent(s): 91f2bf0

Update detectron2/data/clip_datasets/clip_prompt_engineering.py

Browse files
detectron2/data/clip_datasets/clip_prompt_engineering.py CHANGED
@@ -234,90 +234,9 @@ def get_prompt_templates():
234
  # 'a painting of the {}.',
235
  # 'a painting of a {}.',
236
  # ]
237
-
238
- prompt_templates = [
239
- '{}.',
240
- 'a photo of a {}.',
241
- 'a bad photo of a {}.',
242
- 'a photo of many {}.',
243
- 'a sculpture of a {}.',
244
- 'a photo of the hard to see {}.',
245
- 'a low resolution photo of the {}.',
246
- 'a rendering of a {}.',
247
- 'graffiti of a {}.',
248
- 'a bad photo of the {}.',
249
- 'a cropped photo of the {}.',
250
- 'a tattoo of a {}.',
251
- 'the embroidered {}.',
252
- 'a photo of a hard to see {}.',
253
- 'a bright photo of a {}.',
254
- 'a photo of a clean {}.',
255
- 'a photo of a dirty {}.',
256
- 'a dark photo of the {}.',
257
- 'a drawing of a {}.',
258
- 'a photo of my {}.',
259
- 'the plastic {}.',
260
- 'a photo of the cool {}.',
261
- 'a close-up photo of a {}.',
262
- 'a black and white photo of the {}.',
263
- 'a painting of the {}.',
264
- 'a painting of a {}.',
265
- 'a pixelated photo of the {}.',
266
- 'a sculpture of the {}.',
267
- 'a bright photo of the {}.',
268
- 'a cropped photo of a {}.',
269
- 'a plastic {}.',
270
- 'a photo of the dirty {}.',
271
- 'a jpeg corrupted photo of a {}.',
272
- 'a blurry photo of the {}.',
273
- 'a photo of the {}.',
274
- 'a good photo of the {}.',
275
- 'a rendering of the {}.',
276
- 'a {} in a video game.',
277
- 'a photo of one {}.',
278
- 'a doodle of a {}.',
279
- 'a close-up photo of the {}.',
280
- 'the origami {}.',
281
- 'the {} in a video game.',
282
- 'a sketch of a {}.',
283
- 'a doodle of the {}.',
284
- 'a origami {}.',
285
- 'a low resolution photo of a {}.',
286
- 'the toy {}.',
287
- 'a rendition of the {}.',
288
- 'a photo of the clean {}.',
289
- 'a photo of a large {}.',
290
- 'a rendition of a {}.',
291
- 'a photo of a nice {}.',
292
- 'a photo of a weird {}.',
293
- 'a blurry photo of a {}.',
294
- 'a cartoon {}.',
295
- 'art of a {}.',
296
- 'a sketch of the {}.',
297
- 'a embroidered {}.',
298
- 'a pixelated photo of a {}.',
299
- 'itap of the {}.',
300
- 'a jpeg corrupted photo of the {}.',
301
- 'a good photo of a {}.',
302
- 'a plushie {}.',
303
- 'a photo of the nice {}.',
304
- 'a photo of the small {}.',
305
- 'a photo of the weird {}.',
306
- 'the cartoon {}.',
307
- 'art of the {}.',
308
- 'a drawing of the {}.',
309
- 'a photo of the large {}.',
310
- 'a black and white photo of a {}.',
311
- 'the plushie {}.',
312
- 'a dark photo of a {}.',
313
- 'itap of a {}.',
314
- 'graffiti of the {}.',
315
- 'a toy {}.',
316
- 'itap of my {}.',
317
- 'a photo of a cool {}.',
318
- 'a photo of a small {}.',
319
- 'a tattoo of the {}.',
320
- ]
321
  return prompt_templates
322
 
323
  def prompt_engineering(classnames, template=""):
 
234
  # 'a painting of the {}.',
235
  # 'a painting of a {}.',
236
  # ]
237
+
238
+ prompt_templates = ['{}.', 'a photo of the large {}.', 'a photo of the small {}.', 'a bad photo of the {}.', 'itap of the {}.', 'a origami {}.', 'a {} in a video game.', 'art of the {}.']
239
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  return prompt_templates
241
 
242
  def prompt_engineering(classnames, template=""):