Datasets:
fix: change default config
Browse files
visible-watermark-pita.py
CHANGED
@@ -62,9 +62,11 @@ class WatermarkPita(datasets.GeneratorBasedBuilder):
|
|
62 |
"image": datasets.Image(),
|
63 |
"objects": datasets.Sequence(
|
64 |
{
|
65 |
-
"label": datasets.
|
|
|
|
|
66 |
"bbox": datasets.Sequence(
|
67 |
-
datasets.Value("int32"), length=4
|
68 |
),
|
69 |
}
|
70 |
),
|
|
|
62 |
"image": datasets.Image(),
|
63 |
"objects": datasets.Sequence(
|
64 |
{
|
65 |
+
"label": datasets.Sequence(
|
66 |
+
datasets.ClassLabel(names=self.config.categories)
|
67 |
+
),
|
68 |
"bbox": datasets.Sequence(
|
69 |
+
datasets.Sequence(datasets.Value("int32"), length=4),
|
70 |
),
|
71 |
}
|
72 |
),
|