-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
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): |
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.
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): |
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.
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?
No description provided.