jinmang2 commited on
Commit
fb4d02d
·
1 Parent(s): c5249ba

Update ucf_crime.py

Browse files
Files changed (1) hide show
  1. ucf_crime.py +3 -3
ucf_crime.py CHANGED
@@ -197,9 +197,9 @@ class UCFCrime(datasets.GeneratorBasedBuilder):
197
  absolute_file_path = os.path.join(root, name)
198
  if split_path and name not in split_files:
199
  continue
200
- label = root.split(os.sep)[-1].lower()
201
- if "normal" in label:
202
- label = "normal"
203
 
204
  images = [None]
205
  if self.config.to_images == True:
 
197
  absolute_file_path = os.path.join(root, name)
198
  if split_path and name not in split_files:
199
  continue
200
+ label = root.split(os.sep)[-1]
201
+ if "normal" in label.lower():
202
+ label = "Normal"
203
 
204
  images = [None]
205
  if self.config.to_images == True: