Update instruct500k_vi.py
Browse files- instruct500k_vi.py +3 -2
instruct500k_vi.py
CHANGED
@@ -124,9 +124,10 @@ class Instruck500k_Vi(datasets.GeneratorBasedBuilder):
|
|
124 |
:return: Example.
|
125 |
"""
|
126 |
for i, sample in enumerate(split):
|
127 |
-
shard = sample["image"].split("/")[
|
|
|
128 |
image_path = os.path.join(
|
129 |
-
image_dict[shard], sample["image"]
|
130 |
)
|
131 |
|
132 |
yield i, {
|
|
|
124 |
:return: Example.
|
125 |
"""
|
126 |
for i, sample in enumerate(split):
|
127 |
+
shard = sample["image"].split("/")[0]
|
128 |
+
print(shard)
|
129 |
image_path = os.path.join(
|
130 |
+
image_dict[shard], sample["image"].split("/")[1]
|
131 |
)
|
132 |
|
133 |
yield i, {
|