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

Reapply "Added ResNet Classification Model Support" #959

Merged
merged 3 commits into from
Jan 22, 2025
Merged

Conversation

Matvezy
Copy link
Contributor

@Matvezy Matvezy commented Jan 17, 2025

This reverts commit 15d7436.

Description

This is a fix for #943
Now the code is fixed and passed the problematic tests: https://github.com/roboflow/inference/actions/runs/12838521825

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

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

GHA

Any specific deployment considerations

N/A

Docs

  • Docs updated? What were the changes: N/A

@@ -35,6 +35,9 @@ class ClassificationBaseOnnxRoboflowInferenceModel(OnnxRoboflowInferenceModel):

task_type = "classification"

preprocess_means = [0.5, 0.5, 0.5]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe hardcoding such values in code is not great (I know - it was that before) - ideally that should be delivered in model metadata

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, will update it in the future iterations. It was actually part of the reason the previous PR attempt broke.

@Matvezy Matvezy merged commit b566c2e into main Jan 22, 2025
35 checks passed
@Matvezy Matvezy deleted the resnet-fix-api branch January 22, 2025 22:28
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