fix: subdir extract
Browse files
facial-emotion-recognition-dataset.py
CHANGED
@@ -77,7 +77,7 @@ class FacialEmotionRecognitionDataset(datasets.GeneratorBasedBuilder):
|
|
77 |
images = [images[i:i + 8] for i in range(0, len(images), 8)]
|
78 |
|
79 |
for idx, images_set in enumerate(images):
|
80 |
-
set_id = int(images_set[0].split('/')[
|
81 |
data = {'set_id': set_id}
|
82 |
|
83 |
for file in images_set:
|
|
|
77 |
images = [images[i:i + 8] for i in range(0, len(images), 8)]
|
78 |
|
79 |
for idx, images_set in enumerate(images):
|
80 |
+
set_id = int(images_set[0].split('/')[2])
|
81 |
data = {'set_id': set_id}
|
82 |
|
83 |
for file in images_set:
|