bastienp commited on
Commit
222e15b
1 Parent(s): a8c3991

fix: update to jpg

Browse files
Files changed (1) hide show
  1. visible-watermark-pita.py +3 -2
visible-watermark-pita.py CHANGED
@@ -54,7 +54,7 @@ class WatermarkPita(datasets.GeneratorBasedBuilder):
54
  image_dir = os.path.join(data_dir, "images")
55
  label_dir = os.path.join(data_dir, "labels")
56
 
57
- image_paths = sorted(glob(image_dir + "/*/*.png"))
58
  label_paths = sorted(glob(label_dir + "/*/*.txt"))
59
 
60
  for idx, (image_path, label_path) in enumerate(zip(image_paths, label_paths)):
@@ -80,4 +80,5 @@ class WatermarkPita(datasets.GeneratorBasedBuilder):
80
  "bbox": [bbox_top_left, bbox_top_right, bbox_bottom_left, bbox_bottom_right]
81
  })
82
 
83
- yield idx, {"image": image_path, "objects": objects}
 
 
54
  image_dir = os.path.join(data_dir, "images")
55
  label_dir = os.path.join(data_dir, "labels")
56
 
57
+ image_paths = sorted(glob(image_dir + "/*/*.jpg"))
58
  label_paths = sorted(glob(label_dir + "/*/*.txt"))
59
 
60
  for idx, (image_path, label_path) in enumerate(zip(image_paths, label_paths)):
 
80
  "bbox": [bbox_top_left, bbox_top_right, bbox_bottom_left, bbox_bottom_right]
81
  })
82
 
83
+ yield idx, {"image": image_path, "objects": objects}
84
+