gchhablani commited on
Commit
a4ce24c
1 Parent(s): f39afa2

Resize CC12M images

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. apps/mlm.py +2 -2
  2. cc12m_data/resized_images_vqa/00212055---Wax_cylinder_in_Dictaphone.jpg +0 -0
  3. cc12m_data/resized_images_vqa/00315853---041bdd212f5b5d3d30cbc4ccf523f1a3.jpg +0 -0
  4. cc12m_data/resized_images_vqa/00328633---Metal+chips+fly+in+a+high+speed+turning+operation+performed+on+a+computer+numerical+control+turning+center+%28photo+courtesy+of+Cincinnati+Milacron%29..jpg +0 -0
  5. cc12m_data/resized_images_vqa/00491934---I6FTIDWLJRFPHAK4ZSZH4RQGDA.jpg +0 -0
  6. cc12m_data/resized_images_vqa/00507360---MushroomRisotto1.jpg +0 -0
  7. cc12m_data/resized_images_vqa/00602376---%20essay-example-writing-comparison-compare-contrast-how-to-write-poem-examples-of%20-1024x768.jpg +0 -0
  8. cc12m_data/resized_images_vqa/00606341---dog-coloring-book-detailed-dogs-page2.jpg +0 -0
  9. cc12m_data/resized_images_vqa/00697411---dream-house-swimming-pool-large-133359636.jpg +0 -0
  10. cc12m_data/resized_images_vqa/00923733---white-commercial-van-road-motion-blurred-d-illustration-custom-designed-brandless-87900010.jpg +0 -0
  11. cc12m_data/resized_images_vqa/01023838---fundraising-photo.jpg +0 -0
  12. cc12m_data/resized_images_vqa/01053356---522a16b60d3f226fff652671cdde6011.jpg +0 -0
  13. cc12m_data/resized_images_vqa/01157077---female-fruit-picker-worker-basket-woodcut-illustration-wearing-bandana-holding-viewed-side-set-white-61675986.jpg +0 -0
  14. cc12m_data/resized_images_vqa/01275377---Young-the-Giant.jpg +0 -0
  15. cc12m_data/resized_images_vqa/01327794---40250345161_452dc56b11_z.jpg +0 -0
  16. cc12m_data/resized_images_vqa/01648721---170420062908YDYA.jpg +0 -0
  17. cc12m_data/resized_images_vqa/01760795---The-Size-of-the-buildings-in-Shekou-are-in-direct-relation-to-the-time-it-takes-to-accomplish-tasks.jpg +0 -0
  18. cc12m_data/resized_images_vqa/01761366---fresh-salad-flying-vegetables-ingredients-isolated-white-background-48747892.jpg +0 -0
  19. cc12m_data/resized_images_vqa/01772764---business-woman-winner-standing-first-600w-254762824.jpg +0 -0
  20. cc12m_data/resized_images_vqa/01813337---cd4df5cb43d087533e89b12c9805409e.jpg +0 -0
  21. cc12m_data/resized_images_vqa/02034916---XKC6GGK5NDECNBAD5WAQUWOO5U.jpg +0 -0
  22. cc12m_data/resized_images_vqa/02175876---DL2-4i4.jpg +0 -0
  23. cc12m_data/resized_images_vqa/02217469---mount-macedon-victoria-australia-macedon-regional-park-region-photographed-by-karen-robinson-_march-29-2020_042-1.jpg +0 -0
  24. cc12m_data/resized_images_vqa/02243845---heritage-heritage-matte-stainless-steel-sink-undermount-5_2048x.jpg +0 -0
  25. cc12m_data/resized_images_vqa/02335328---margaret-and-alexander-potters-houses-1948.jpg +0 -0
  26. cc12m_data/resized_images_vqa/02520451---Gower-1.jpg +0 -0
  27. cc12m_data/resized_images_vqa/02912250---a-black-panther-has-been-spotted-in-weald-park-brentwood-essex-britain-shutterstock-editorial-618335e.jpg +0 -0
  28. cc12m_data/resized_images_vqa/03257347---looking-farther-afield-article-size.jpg +0 -0
  29. cc12m_data/resized_images_vqa/03271226---beneath-the-borealis-092517-a-very-bear-y-summer-kennicott-valley-virga.jpg +0 -0
  30. cc12m_data/resized_images_vqa/03307717---tumblr_m9d4xkRM5n1rypkpio1_1280.jpg +0 -0
  31. cc12m_data/resized_images_vqa/03360735---Warm-Bacon-Dip-EasyLowCarb-2.jpg +0 -0
  32. cc12m_data/resized_images_vqa/03394023---m_5e36e15f2169682519441e34.jpg +0 -0
  33. cc12m_data/resized_images_vqa/03401066---160328-capitol-police-mn-1530_bd68b01f1d7f1c3ab99eafa503930569.fit-760w.jpg +0 -0
  34. cc12m_data/resized_images_vqa/03598306---20400805522_fba017bc51_b.jpg +0 -0
  35. cc12m_data/resized_images_vqa/03618296---A+pink+and+grey+woven+baskets+sits+on+top+of+a+clear+side+table.jpg +0 -0
  36. cc12m_data/resized_images_vqa/04331097---108_1504859395_24.jpg +0 -0
  37. cc12m_data/resized_images_vqa/04334412---Pants-All-match-Professional-Harlan-Women-s-Loose-Skinny-High-Waist-New-2019-Suit-Summer-Leisure-Pants-2077.jpg +0 -0
  38. cc12m_data/resized_images_vqa/04358571---41-Travelex.jpg +0 -0
  39. cc12m_data/resized_images_vqa/04361362---square-stone-benches-around-fire-pit-outside-residential-building-sunny-day-pathways-plants-can-also-be-seen-homes-171086572.jpg +0 -0
  40. cc12m_data/resized_images_vqa/04530023---49305383277_29d4a34f37_h.jpg +0 -0
  41. cc12m_data/resized_images_vqa/04749808---thinkstockphotos-1858212351.jpg +0 -0
  42. cc12m_data/resized_images_vqa/04935800---35-04914.jpg +0 -0
  43. cc12m_data/resized_images_vqa/04964414---1400976024813.jpg +0 -0
  44. cc12m_data/resized_images_vqa/05134015---UN058144.jpg +0 -0
  45. cc12m_data/resized_images_vqa/05324218---piece-homemade-cake-cup-tea-purple-background-60761143.jpg +0 -0
  46. cc12m_data/resized_images_vqa/05352777---CHILD_CAR_SAFETY_03.jpg +0 -0
  47. cc12m_data/resized_images_vqa/05353869---d416548afc0966365239750752ec7e7c.jpg +0 -0
  48. cc12m_data/resized_images_vqa/05359810---cup-herbal-tea-coffee-good-day-coloring-book-adult-vector-85330480.jpg +0 -0
  49. cc12m_data/resized_images_vqa/05556446---diamond-company-logo-app-icon-splash-page-design-creative-business-elements-vector-eps-illustration-best-print-136321158.jpg +0 -0
  50. cc12m_data/resized_images_vqa/05731219---situazione%252025%2520aprile%25202020.jpg +0 -0
apps/mlm.py CHANGED
@@ -54,7 +54,7 @@ def app(state):
54
  mlm_state.caption = bert_tokenizer.decode(ids[1:-1])
55
  mlm_state.caption_lang_id = dummy_data.loc[first_index, "lang_id"]
56
 
57
- image_path = os.path.join("cc12m_data/images_vqa", mlm_state.mlm_image_file)
58
  image = plt.imread(image_path)
59
  mlm_state.mlm_image = image
60
 
@@ -75,7 +75,7 @@ def app(state):
75
  mlm_state.caption = bert_tokenizer.decode(ids[1:-1])
76
  mlm_state.caption_lang_id = sample.loc[0, "lang_id"]
77
 
78
- image_path = os.path.join("cc12m_data/images_vqa", mlm_state.mlm_image_file)
79
  image = plt.imread(image_path)
80
  mlm_state.mlm_image = image
81
 
 
54
  mlm_state.caption = bert_tokenizer.decode(ids[1:-1])
55
  mlm_state.caption_lang_id = dummy_data.loc[first_index, "lang_id"]
56
 
57
+ image_path = os.path.join("cc12m_data/resized_images_vqa", mlm_state.mlm_image_file)
58
  image = plt.imread(image_path)
59
  mlm_state.mlm_image = image
60
 
 
75
  mlm_state.caption = bert_tokenizer.decode(ids[1:-1])
76
  mlm_state.caption_lang_id = sample.loc[0, "lang_id"]
77
 
78
+ image_path = os.path.join("cc12m_data/resized_images_vqa", mlm_state.mlm_image_file)
79
  image = plt.imread(image_path)
80
  mlm_state.mlm_image = image
81
 
cc12m_data/resized_images_vqa/00212055---Wax_cylinder_in_Dictaphone.jpg ADDED
cc12m_data/resized_images_vqa/00315853---041bdd212f5b5d3d30cbc4ccf523f1a3.jpg ADDED
cc12m_data/resized_images_vqa/00328633---Metal+chips+fly+in+a+high+speed+turning+operation+performed+on+a+computer+numerical+control+turning+center+%28photo+courtesy+of+Cincinnati+Milacron%29..jpg ADDED
cc12m_data/resized_images_vqa/00491934---I6FTIDWLJRFPHAK4ZSZH4RQGDA.jpg ADDED
cc12m_data/resized_images_vqa/00507360---MushroomRisotto1.jpg ADDED
cc12m_data/resized_images_vqa/00602376---%20essay-example-writing-comparison-compare-contrast-how-to-write-poem-examples-of%20-1024x768.jpg ADDED
cc12m_data/resized_images_vqa/00606341---dog-coloring-book-detailed-dogs-page2.jpg ADDED
cc12m_data/resized_images_vqa/00697411---dream-house-swimming-pool-large-133359636.jpg ADDED
cc12m_data/resized_images_vqa/00923733---white-commercial-van-road-motion-blurred-d-illustration-custom-designed-brandless-87900010.jpg ADDED
cc12m_data/resized_images_vqa/01023838---fundraising-photo.jpg ADDED
cc12m_data/resized_images_vqa/01053356---522a16b60d3f226fff652671cdde6011.jpg ADDED
cc12m_data/resized_images_vqa/01157077---female-fruit-picker-worker-basket-woodcut-illustration-wearing-bandana-holding-viewed-side-set-white-61675986.jpg ADDED
cc12m_data/resized_images_vqa/01275377---Young-the-Giant.jpg ADDED
cc12m_data/resized_images_vqa/01327794---40250345161_452dc56b11_z.jpg ADDED
cc12m_data/resized_images_vqa/01648721---170420062908YDYA.jpg ADDED
cc12m_data/resized_images_vqa/01760795---The-Size-of-the-buildings-in-Shekou-are-in-direct-relation-to-the-time-it-takes-to-accomplish-tasks.jpg ADDED
cc12m_data/resized_images_vqa/01761366---fresh-salad-flying-vegetables-ingredients-isolated-white-background-48747892.jpg ADDED
cc12m_data/resized_images_vqa/01772764---business-woman-winner-standing-first-600w-254762824.jpg ADDED
cc12m_data/resized_images_vqa/01813337---cd4df5cb43d087533e89b12c9805409e.jpg ADDED
cc12m_data/resized_images_vqa/02034916---XKC6GGK5NDECNBAD5WAQUWOO5U.jpg ADDED
cc12m_data/resized_images_vqa/02175876---DL2-4i4.jpg ADDED
cc12m_data/resized_images_vqa/02217469---mount-macedon-victoria-australia-macedon-regional-park-region-photographed-by-karen-robinson-_march-29-2020_042-1.jpg ADDED
cc12m_data/resized_images_vqa/02243845---heritage-heritage-matte-stainless-steel-sink-undermount-5_2048x.jpg ADDED
cc12m_data/resized_images_vqa/02335328---margaret-and-alexander-potters-houses-1948.jpg ADDED
cc12m_data/resized_images_vqa/02520451---Gower-1.jpg ADDED
cc12m_data/resized_images_vqa/02912250---a-black-panther-has-been-spotted-in-weald-park-brentwood-essex-britain-shutterstock-editorial-618335e.jpg ADDED
cc12m_data/resized_images_vqa/03257347---looking-farther-afield-article-size.jpg ADDED
cc12m_data/resized_images_vqa/03271226---beneath-the-borealis-092517-a-very-bear-y-summer-kennicott-valley-virga.jpg ADDED
cc12m_data/resized_images_vqa/03307717---tumblr_m9d4xkRM5n1rypkpio1_1280.jpg ADDED
cc12m_data/resized_images_vqa/03360735---Warm-Bacon-Dip-EasyLowCarb-2.jpg ADDED
cc12m_data/resized_images_vqa/03394023---m_5e36e15f2169682519441e34.jpg ADDED
cc12m_data/resized_images_vqa/03401066---160328-capitol-police-mn-1530_bd68b01f1d7f1c3ab99eafa503930569.fit-760w.jpg ADDED
cc12m_data/resized_images_vqa/03598306---20400805522_fba017bc51_b.jpg ADDED
cc12m_data/resized_images_vqa/03618296---A+pink+and+grey+woven+baskets+sits+on+top+of+a+clear+side+table.jpg ADDED
cc12m_data/resized_images_vqa/04331097---108_1504859395_24.jpg ADDED
cc12m_data/resized_images_vqa/04334412---Pants-All-match-Professional-Harlan-Women-s-Loose-Skinny-High-Waist-New-2019-Suit-Summer-Leisure-Pants-2077.jpg ADDED
cc12m_data/resized_images_vqa/04358571---41-Travelex.jpg ADDED
cc12m_data/resized_images_vqa/04361362---square-stone-benches-around-fire-pit-outside-residential-building-sunny-day-pathways-plants-can-also-be-seen-homes-171086572.jpg ADDED
cc12m_data/resized_images_vqa/04530023---49305383277_29d4a34f37_h.jpg ADDED
cc12m_data/resized_images_vqa/04749808---thinkstockphotos-1858212351.jpg ADDED
cc12m_data/resized_images_vqa/04935800---35-04914.jpg ADDED
cc12m_data/resized_images_vqa/04964414---1400976024813.jpg ADDED
cc12m_data/resized_images_vqa/05134015---UN058144.jpg ADDED
cc12m_data/resized_images_vqa/05324218---piece-homemade-cake-cup-tea-purple-background-60761143.jpg ADDED
cc12m_data/resized_images_vqa/05352777---CHILD_CAR_SAFETY_03.jpg ADDED
cc12m_data/resized_images_vqa/05353869---d416548afc0966365239750752ec7e7c.jpg ADDED
cc12m_data/resized_images_vqa/05359810---cup-herbal-tea-coffee-good-day-coloring-book-adult-vector-85330480.jpg ADDED
cc12m_data/resized_images_vqa/05556446---diamond-company-logo-app-icon-splash-page-design-creative-business-elements-vector-eps-illustration-best-print-136321158.jpg ADDED
cc12m_data/resized_images_vqa/05731219---situazione%252025%2520aprile%25202020.jpg ADDED