Datasets:
lcolonn
commited on
feat: add prints
Browse files
patfig.py
CHANGED
@@ -70,6 +70,8 @@ class PatFig(GeneratorBasedBuilder):
|
|
70 |
def _generate_examples(self, images_dir: str, annotations_dir: str):
|
71 |
with open(annotations_dir, "r") as f:
|
72 |
data = json.load(f)
|
|
|
|
|
73 |
for idx, record in enumerate(data):
|
74 |
image_path = os.path.join(images_dir, record["pub_number"], record["image_name"])
|
75 |
yield idx, {
|
|
|
70 |
def _generate_examples(self, images_dir: str, annotations_dir: str):
|
71 |
with open(annotations_dir, "r") as f:
|
72 |
data = json.load(f)
|
73 |
+
print(data.type())
|
74 |
+
print(data)
|
75 |
for idx, record in enumerate(data):
|
76 |
image_path = os.path.join(images_dir, record["pub_number"], record["image_name"])
|
77 |
yield idx, {
|