-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Add optional onnx dependencies * feat: Add onnx export function * refactor: Start logger refactoring * feat: Add onnx export capabilities for classification * feat: Add onnx export capability * feat: Add evaluation model wrappers * feat!: Refactor export_config parameter to become its own config to avoid code replication * refactor: Refactor export function to avoid excessive code replication * feat: Add inference configuration * build: Upgrade anomalib version * tests: Refactor anomaly tests to perform training and inference with onnx and torchscript * tests: Improve tests for classification related tasks * tests: Update segmentation tests with onnx export * tests: Update ssl tests to integrate onnx export * tests: Add tests to validate the outputs of exported models * build: Add pytest lazy fixtures package to test requirements * tests: Add tests checking the equality of exported models outputs * tests: Add guards to run tests if onnx is not installed, add onnx installation to github tests * style: Fix wrong parentheses * fix: Fix wrong usage of pytest skipif * fix: Fix missing parameter pop in export onnx function * tests: Remove onnx export from fastflow test * fix: Allow model wrapper to retrieve input shapes if instance is a torchscript model * build: Bump version 1.1.3 -> 1.1.4 * docs: Update changelog * refactor: Tiny improvements to model export * refactor: Add dictionary mapping export types and paths to model export function return values * fix: Fix defaults order * refactor: Move get_export_extension function * feat: Use iobinding to handle torch inputs for onnx * feat: Add cpu method to evaluation models * fix: Fix wrong configuration parameter * fix: Fix segmentation analysis not working due to missing parameter * feat: add gpu unit tests * docs: Add documentation for model import and export * docs: Add export information in documentation * docs: Update changelog * refactor: Remove references to save_backbone parameter * docs: Update changelog * docs: Fix wrong typing * fix: Avoid exporting ModelSignatureWrapper, fix wrong onnx export with multiple inputs * fix: Fix multiple inputs not handled properly in onnx evaluation forward * feat: Add automatic export with strict=False if normal torchscript fails * fix: Fix dynamic axes not generated properly when fixed_batch_size isn't passed to configuration --------- Approved By: @AlessandroPolidori Co-authored-by: rcmalli <[email protected]>
- Loading branch information
1 parent
cea6f86
commit cc81f05
Showing
61 changed files
with
1,798 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,4 @@ docs/javascripts/images/* | |
test-output.xml | ||
external/ | ||
site/ | ||
local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.