bastienp commited on
Commit
a32d392
1 Parent(s): ad4cb37

fix: change zip and change architecture

Browse files
Files changed (3) hide show
  1. data/train.zip +2 -2
  2. data/valid.zip +2 -2
  3. visible-watermark-pita.py +2 -3
data/train.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bde79a9868ea2e8a14a98f8569ef5925fec59f72d214930efa8009f701ff52e9
3
- size 809959496
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8732c2c1a5cb4651a2c01def24e428a6e3a1d8a0e0c2acfb88c9233da9f521c
3
+ size 1584616
data/valid.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2f161c08bf06ff5bfcba3be4feeb0283377511e721001dff3d87ba87e7713ce6
3
- size 306
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d127f8634a60fdc539da6864c86eb880b7f3979fbb3dee64d7a88a3311b5a1a
3
+ size 470
visible-watermark-pita.py CHANGED
@@ -54,8 +54,8 @@ 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 + "/*/*.jpg"))
58
- label_paths = sorted(glob(label_dir + "/*/*.txt"))
59
 
60
  for idx, (image_path, label_path) in enumerate(zip(image_paths, label_paths)):
61
  im = Image.open(image_path)
@@ -81,4 +81,3 @@ class WatermarkPita(datasets.GeneratorBasedBuilder):
81
  })
82
 
83
  yield idx, {"image": image_path, "objects": objects}
84
-
 
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)):
61
  im = Image.open(image_path)
 
81
  })
82
 
83
  yield idx, {"image": image_path, "objects": objects}