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

Need an extra underscore for extra parameter while looping through "detections" #279

Open
2 tasks done
Lars-Codes opened this issue May 30, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Lars-Codes
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

train-yolo-nas-on-custom-dataset.ipynb

Bug

Under "Visualize Interference Result," there is this for loop:
labels = [ f"{result.class_names[class_id]} {confidence:0.2f}" for _, _, confidence, class_id, _ in detections ]

But it needs an extra underscore for it to function properly:

labels = [ f"{result.class_names[class_id]} {confidence:0.2f}" for _, _, confidence, class_id, _, _ in detections ]

Environment

Ubuntu 22.04, Python 3.8.10

Minimal Reproducible Example

No response

Additional

Parameter list for detections class can be found in this documentation.

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@Lars-Codes Lars-Codes added the bug Something isn't working label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant