-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] fix visualization in sot demo #213
Conversation
Codecov Report
@@ Coverage Diff @@
## master #213 +/- ##
==========================================
+ Coverage 69.64% 69.67% +0.02%
==========================================
Files 87 87
Lines 4395 4402 +7
Branches 863 863
==========================================
+ Hits 3061 3067 +6
- Misses 1047 1048 +1
Partials 287 287
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
mmtrack/models/sot/base.py
Outdated
|
||
Args: | ||
img (str or ndarray): The image to be displayed. | ||
result (ndarray): ndarray of shape (4. ). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(4, )
mmtrack/models/sot/base.py
Outdated
|
||
Args: | ||
img (str or ndarray): The image to be displayed. | ||
result (ndarray): ndarray of shape (4. ). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(4, ).
This PR fixs the visualization in sot demo. In function
cv2.rectangle
, the coordinate points of the bbox need to benp.int
instead ofnp.float
. For more details, please refer to here.