-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add official demo in Google Colab #184
Conversation
73dd2c9
to
0be1e0a
Compare
demos/colab/demo.py
Outdated
import tempfile | ||
|
||
import numpy as np | ||
from distance_function import euclidean_distance, iou |
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.
this module is available under norfair.distances
no need to repeat it in the demo
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.
but be careful with the distance threshold for iou, the implementation provided by norfair is bound to [0,1]
where 1 means that the boxes don't touch and 0 means the boxes are the same
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.
I changed these distance functions to create_normalized_mean_euclidean_distance like you suggest me on the HF demo.
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.
a couple more questions
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
903445a
to
d351b6e
Compare
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.
LGTM
d351b6e
to
03a2ec6
Compare
03a2ec6
to
9b78518
Compare
This PR introduces a Colab demo similar to the demo running on the Hugging Face Spaces.
When this PR is approved I change the GitHub links to the master brach.