vkashko commited on
Commit
4dadcb2
1 Parent(s): dac834f
hand-gesture-recognition-dataset.py CHANGED
@@ -65,8 +65,11 @@ class HandGestureRecognitionDataset(datasets.GeneratorBasedBuilder):
65
  files = sorted(files)
66
  files = [files[i:i + 5] for i in range(0, len(files), 5)]
67
  for idx, files_set in enumerate(files):
68
- set_id = int((files_set[0].split('/'))[-2])
69
- data = {'set_id': set_id}
 
 
 
70
 
71
  for file in files_set:
72
  file_name = '/'.join(file.split('/')[-1])
 
65
  files = sorted(files)
66
  files = [files[i:i + 5] for i in range(0, len(files), 5)]
67
  for idx, files_set in enumerate(files):
68
+ try:
69
+ set_id = int((files_set[0].split('/'))[-2])
70
+ data = {'set_id': set_id}
71
+ except:
72
+ raise
73
 
74
  for file in files_set:
75
  file_name = '/'.join(file.split('/')[-1])