del kwargs["features"]
kwargs["label_bboxes"] = kwargs.pop("labels")
results = []
features = list(f for f, _ in features)
if "bad_slices" in features:
results.append(self.badslices(**kwargs))
if "lbp" in features:
results.append(self.lbp(**kwargs))
After Change
del kwargs["features"]
kwargs["label_bboxes"] = kwargs.pop("labels")
results = []
features = features.keys()
if "bad_slices" in features:
results.append(self.badslices(**kwargs))
if "lbp" in features:
results.append(self.lbp(**kwargs))