Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

sberan
Copy link
Contributor

@sberan sberan commented Aug 27, 2025

Description

When model weights are uploaded to the roboflow platform, the class names can be stripped for security reasons. In this case, the identifier on the VNRecognizedObjectObservation is a numeric value ie "14" rather than an actual class name ie "dog".

With this change, when we get a numeric class identifier, we will first make sure that the number is not a valid class label, in case a model is being labeled with numbers. We then look up the class mapping corresponding to the integer value and return it.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

Tested locally

Any specific deployment considerations

standard deploy

Docs

  • n/a

@sberan sberan requested a review from MadeWithStone August 27, 2025 18:26
@sberan sberan merged commit 4c8e30b into main Aug 27, 2025
1 check passed
@sberan sberan deleted the class-names-from-stripped-model branch August 27, 2025 18:36
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.