[update]add data
Browse files
cppe5.py
CHANGED
@@ -101,7 +101,6 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
101 |
with open(file_path, "rb") as image_f:
|
102 |
image_bytes = image_f.read()
|
103 |
|
104 |
-
print(sample)
|
105 |
yield idx, {
|
106 |
"image_id": sample["image_id"],
|
107 |
# "image": {"path": file_path, "bytes": image_bytes},
|
|
|
101 |
with open(file_path, "rb") as image_f:
|
102 |
image_bytes = image_f.read()
|
103 |
|
|
|
104 |
yield idx, {
|
105 |
"image_id": sample["image_id"],
|
106 |
# "image": {"path": file_path, "bytes": image_bytes},
|
main.py
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
dataset = load_dataset(
|
6 |
-
"qgyd2021/cppe-5",
|
7 |
-
|
8 |
name=None,
|
9 |
split="train",
|
10 |
)
|
|
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
dataset = load_dataset(
|
6 |
+
# "qgyd2021/cppe-5",
|
7 |
+
"cppe5.py",
|
8 |
name=None,
|
9 |
split="train",
|
10 |
)
|