Update AASL.py
Browse files
AASL.py
CHANGED
|
@@ -69,11 +69,12 @@ class AASL(datasets.GeneratorBasedBuilder):
|
|
| 69 |
print(x)
|
| 70 |
print(images)
|
| 71 |
|
| 72 |
-
for i, file in enumerate(
|
| 73 |
if os.path.basename(file).endswith(".jpg"):
|
|
|
|
| 74 |
with open(file, "rb") as f:
|
| 75 |
yield str(i), {
|
| 76 |
"image": file,
|
| 77 |
-
"labels":
|
| 78 |
}
|
| 79 |
|
|
|
|
| 69 |
print(x)
|
| 70 |
print(images)
|
| 71 |
|
| 72 |
+
for i, file in enumerate(images):
|
| 73 |
if os.path.basename(file).endswith(".jpg"):
|
| 74 |
+
# print(os.path.basename(os.path.dirname(file)).lower())
|
| 75 |
with open(file, "rb") as f:
|
| 76 |
yield str(i), {
|
| 77 |
"image": file,
|
| 78 |
+
"labels": 'test',
|
| 79 |
}
|
| 80 |
|