lcolonn commited on
Commit
fec1472
·
unverified ·
1 Parent(s): 416b705

feat: add prints

Browse files
Files changed (1) hide show
  1. patfig.py +2 -0
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, {