jherng commited on
Commit
4509a2f
1 Parent(s): e14b0d6

Debug dataset loading script

Browse files
Files changed (1) hide show
  1. 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 = [