Remove unnecessary instances of dict.keys() (#42518)

This commit is contained in:
springstan
2020-10-28 20:43:48 +01:00
committed by GitHub
parent 6e43d489ca
commit a967f689c7
21 changed files with 25 additions and 25 deletions

View File

@ -407,7 +407,7 @@ class TensorFlowImageProcessor(ImageProcessingEntity):
continue
# If we got here, we should include it
if category not in matches.keys():
if category not in matches:
matches[category] = []
matches[category].append({"score": float(score), "box": boxes})
total_matches += 1