Remove unnecessary instances of dict.keys() (#42518)
This commit is contained in:
1 parent
6e43d489ca
commit
a967f689c7
21 files changed
+25
-25
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user