Skip to content

Conversation

@codelion
Copy link
Owner

@codelion codelion commented Oct 6, 2025

  • add support for onnx

Changed the default value of the include_onnx parameter to True in save and push_to_hub methods of AdaptiveClassifier. Updated README and docstrings to reflect that ONNX export is now included by default, with an option to opt out.
Enhanced the AdaptiveClassifier to support loading both quantized and unquantized ONNX models, with quantized as the default for improved performance. Updated the README with usage instructions and clarified the behavior of ONNX model selection for saving and loading.
Adds initialization of subclass-specific attributes (such as default_threshold, min_predictions, max_predictions, and label_thresholds) in AdaptiveClassifier.load to ensure proper state after loading. Updates tests to handle ONNX and non-ONNX models correctly when setting eval mode and loading classifiers.
@codelion codelion merged commit 0a656e5 into main Oct 6, 2025
3 checks passed
@codelion codelion deleted the feat-add-onnx-support branch October 6, 2025 15:21
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