Enable Ruff RET504 (#114528)
* Enable Ruff RET504 * fix test * Use noqa instead of cast * fix sonos RET504 --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
a28731c294
commit
0d66d298ec
200 changed files with 252 additions and 595 deletions
|
@ -96,9 +96,7 @@ def get_model_detection_function(model):
|
|||
|
||||
image, shapes = model.preprocess(image)
|
||||
prediction_dict = model.predict(image, shapes)
|
||||
detections = model.postprocess(prediction_dict, shapes)
|
||||
|
||||
return detections
|
||||
return model.postprocess(prediction_dict, shapes)
|
||||
|
||||
return detect_fn
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue