fix: script
Browse files
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)
|