Datasets:
fix: change zip and change architecture
Browse files- data/train.zip +2 -2
- data/valid.zip +2 -2
- 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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
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 + "
|
58 |
-
label_paths = sorted(glob(label_dir + "
|
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}
|
|