Upload CAPMIT1003.py
Browse files- CAPMIT1003.py +2 -2
CAPMIT1003.py
CHANGED
|
@@ -146,11 +146,11 @@ class CapMIT1003(datasets.GeneratorBasedBuilder):
|
|
| 146 |
|
| 147 |
def _generate_examples(self, file_path):
|
| 148 |
#CapMIT1003DB.download_images()
|
| 149 |
-
logger.warning("HERE")
|
| 150 |
logger.warning(f"filepath is: {file_path}")
|
| 151 |
-
with CapMIT1003DB('capmit1003.db') as db:
|
| 152 |
logger.warning("inside")
|
| 153 |
image_captions = db.get_captions()
|
|
|
|
| 154 |
for pair in image_captions.itertuples(index=False):
|
| 155 |
logger.warning("Loop-")
|
| 156 |
caption = pair.caption
|
|
|
|
| 146 |
|
| 147 |
def _generate_examples(self, file_path):
|
| 148 |
#CapMIT1003DB.download_images()
|
|
|
|
| 149 |
logger.warning(f"filepath is: {file_path}")
|
| 150 |
+
with CapMIT1003DB('capmit1003.db', file_path) as db:
|
| 151 |
logger.warning("inside")
|
| 152 |
image_captions = db.get_captions()
|
| 153 |
+
logger.warning(f"captions: {image_captions}")
|
| 154 |
for pair in image_captions.itertuples(index=False):
|
| 155 |
logger.warning("Loop-")
|
| 156 |
caption = pair.caption
|