FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Validate 3D metrics by Anirudh-Scale · Pull Request #261 · scaleapi/nucleus-python-client · GitHub

Validate 3D metrics - #261

Open
Anirudh-Scale wants to merge 16 commits into
masterfrom
metrics_3d
Open

Validate 3D metrics#261
Anirudh-Scale wants to merge 16 commits into
masterfrom
metrics_3d

Conversation

Copy link
Copy Markdown

Added 3D IOU, BEV 2D IOU, and recall, precision metrics. Tested end-to-end with celery in models repo (see associated PR there).

Comment thread pyproject.toml
shellingham = "^1.4.0"
scikit-learn = ">=0.24.0"
Shapely = ">=1.7.1"
Shapely = "^1.8.1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@gatli didn't we run into problems with Shapely at some point?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yup, we can't use it. It doesn't have wide enough binary support.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

So what should we do about this? @Anirudh-Scale how much do we rely in the shapely dependency? Any chance we can get around this? If not, @gatli how can we still make this work?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@pfmark I can implement a function to calculate the area intersection without Shapely, it's just going to be significantly slower. If that's a trade-off we're ok with, I can do that.

phil-scale Mar 24, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There's already a function for polygon area intersection in the directory under geometry.py. I'd suggest using that since it looks like you're using shapely only for polygon intersection area.

Edit: it looks like the native polygon was used originally before changing to shapely? The native polygon intersection function is quite slow since it's written in Python, but there's a speed up for convex polygons

pfmark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

few smaller comments. In addition, do we have a way of easily testing the correctness of the metrics in a test unit test? I think that would be great!

Comment thread nucleus/metrics/cuboid_metrics.py Outdated
Comment thread nucleus/metrics/cuboid_metrics.py Outdated
Comment thread nucleus/metrics/cuboid_utils.py Outdated
Comment thread nucleus/metrics/cuboid_utils.py Outdated

def __init__(
self,
enforce_label_match: bool = False,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This argument (and maybe confidence_threshold?) should be required in the constructor, and if we want to set defaults then set them in the child classes.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL