Datasets:
refactor
Browse files
hand-gesture-recognition-dataset.py
CHANGED
|
@@ -62,8 +62,6 @@ class HandGestureRecognitionDataset(datasets.GeneratorBasedBuilder):
|
|
| 62 |
def _generate_examples(self, files, annotations):
|
| 63 |
annotations_df = pd.read_csv(annotations, sep=',')
|
| 64 |
|
| 65 |
-
# files = sorted(files)
|
| 66 |
-
# files = [files[i:i + 5] for i in range(0, len(files), 5)]
|
| 67 |
for idx, file_path in enumerate(files):
|
| 68 |
set_id = int(file_path.split('/')[-2])
|
| 69 |
file_name = file_path.split('/')[-1]
|
|
|
|
| 62 |
def _generate_examples(self, files, annotations):
|
| 63 |
annotations_df = pd.read_csv(annotations, sep=',')
|
| 64 |
|
|
|
|
|
|
|
| 65 |
for idx, file_path in enumerate(files):
|
| 66 |
set_id = int(file_path.split('/')[-2])
|
| 67 |
file_name = file_path.split('/')[-1]
|