Skip to content
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 snr and move detections to exif #262

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Add snr and move detections to exif #262

wants to merge 7 commits into from

Conversation

punov
Copy link
Collaborator

@punov punov commented Sep 27, 2024

No description provided.

def transform_box(box, model_size, grid_size, index):
CLASS_NAMES = ['face', 'person', 'license-plate', 'car', 'bus', 'truck', 'motorcycle', 'bicycle']

def get_label(class_id):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be good to use type hints in new python code

def get_label(class_id: int) -> Optional[str]:

It makes the code easier to read and there are vscode plugins that do type checking on annotated code

No need to do this in this PR if it would slow things down

return CLASS_NAMES[class_id]
return None

def transform_box(box, model_size, grid_size, index, scale_config, class_id):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this code identical to detect_hdc.py in odc-api? https://github.com/Hivemapper/odc-api/pull/228/files

If so would it be possible to copy this from odc-api instead of duplicating the changes here?

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.

2 participants