Debug dataset loading script
Browse files- xd-violence.py +1 -1
xd-violence.py
CHANGED
@@ -292,7 +292,7 @@ class XDViolence(datasets.GeneratorBasedBuilder):
|
|
292 |
@classmethod
|
293 |
def extract_labels(cls, video_id):
|
294 |
"""Extracts labels from the video id."""
|
295 |
-
codes = video_id.split("_")[-1].split("-")
|
296 |
|
297 |
binary = 1 if len(codes) > 1 else 0
|
298 |
multilabel = [
|
|
|
292 |
@classmethod
|
293 |
def extract_labels(cls, video_id):
|
294 |
"""Extracts labels from the video id."""
|
295 |
+
codes = video_id.split("_")[-1].split(".mp4")[0].split("-")
|
296 |
|
297 |
binary = 1 if len(codes) > 1 else 0
|
298 |
multilabel = [
|