Update ucf_crime.py
Browse files- 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]
|
201 |
-
if "normal" in label:
|
202 |
-
label = "
|
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:
|