Skip to content

fix UnboundLocalError#55

Open
mymusise wants to merge 1 commit intoIDEA-Research:onnxfrom
mymusise:onnx
Open

fix UnboundLocalError#55
mymusise wants to merge 1 commit intoIDEA-Research:onnxfrom
mymusise:onnx

Conversation

@mymusise
Copy link

Fix error when dets is None:

  File "/home/ubuntu/DWPose/ControlNet-v1-1-nightly/annotator/dwpose/onnxdet.py", line 123, in inference_detector
    return final_boxes
UnboundLocalError: local variable 'final_boxes' referenced before assignment

Signed-off-by: mymusise <mymusise1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant