vkashko commited on
Commit
e20781b
1 Parent(s): 9886b22

fix: script

Browse files
Files changed (1) hide show
  1. medical-staff-people-tracking.py +2 -1
medical-staff-people-tracking.py CHANGED
@@ -97,7 +97,8 @@ class ElectricScootersTracking(datasets.GeneratorBasedBuilder):
97
  img.set("id", str(index))
98
  for track in root.iter("track"):
99
  shape = track.find(f".//*[@frame='{index}']")
100
- if shape:
 
101
  shape.set("label", track.get("label"))
102
  shape.set("track_id", track.get("id"))
103
  img.append(shape)
 
97
  img.set("id", str(index))
98
  for track in root.iter("track"):
99
  shape = track.find(f".//*[@frame='{index}']")
100
+ if not (shape is None):
101
+
102
  shape.set("label", track.get("label"))
103
  shape.set("track_id", track.get("id"))
104
  img.append(shape)