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

New Export API #1318

Merged
merged 57 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
0414394
Designing export API
BloodAxe Jul 14, 2023
054152d
Export WIP
BloodAxe Jul 17, 2023
1872443
ONNX NMS
BloodAxe Jul 17, 2023
4a76131
Export WIP
BloodAxe Jul 18, 2023
fffcdc5
Refactor test and move benchmark API to functino
BloodAxe Jul 19, 2023
55afd70
Export WIP
BloodAxe Jul 19, 2023
ed8730b
Make the top_k a constant and not variable since TRT export does not …
BloodAxe Jul 19, 2023
cdc41d7
Refactor test and move benchmark API to functino
BloodAxe Jul 19, 2023
72e7d66
Added option to change the output format
BloodAxe Jul 20, 2023
015357d
Refactor test and move benchmark API to functino
BloodAxe Jul 20, 2023
794fc73
Added option to change the output format
BloodAxe Jul 21, 2023
da99bfa
Refactor test and move benchmark API to functino
BloodAxe Jul 21, 2023
a18a19d
Merge branch 'master' into feature/SG-1001
BloodAxe Jul 21, 2023
ca6ab9b
Fixing export to make it TRT friendly
BloodAxe Jul 21, 2023
c7f123b
Fixing export to make it TRT friendly
BloodAxe Jul 21, 2023
f08ca47
Fixing export to make it TRT friendly
BloodAxe Jul 24, 2023
8c188ca
Fixing export to make it TRT friendly
BloodAxe Jul 24, 2023
f7e6e93
Remove unused classes
BloodAxe Jul 24, 2023
56daabd
Remove unused classes
BloodAxe Jul 24, 2023
3ad8636
Remove unused classes
BloodAxe Jul 24, 2023
3717316
Remove unused classes
BloodAxe Jul 24, 2023
4ac7912
Fixing export to FP16
BloodAxe Jul 28, 2023
fa6167d
Fixing export to FP16
BloodAxe Jul 28, 2023
fdd6582
Improve output of the benchmark result
BloodAxe Jul 28, 2023
ff1fcff
Improve device handling when exporting NMS
BloodAxe Jul 28, 2023
16521a9
Improve device handling when exporting NMS
BloodAxe Jul 28, 2023
46e5a6e
Fix nms format conversion modules export
BloodAxe Jul 28, 2023
6691b03
Revert unit test
BloodAxe Jul 28, 2023
75bcd46
Improve model device handling
BloodAxe Jul 28, 2023
66ceaa1
Adding docs
BloodAxe Jul 31, 2023
5b57459
Adding docs
BloodAxe Jul 31, 2023
acf2684
Adding docs
BloodAxe Jul 31, 2023
7e1c417
Merge branch 'master' into feature/SG-1001
BloodAxe Jul 31, 2023
e2683e3
Adding docs
BloodAxe Aug 1, 2023
435c927
Merge remote-tracking branch 'origin/feature/SG-1001' into feature/SG…
BloodAxe Aug 1, 2023
e2d4fec
Address TODO's after code review
BloodAxe Aug 1, 2023
57890f3
Added check whether model is already quantized
BloodAxe Aug 2, 2023
efcf93f
Merge branch 'master' into feature/SG-1001
BloodAxe Aug 3, 2023
0746cf8
Install pytorch quantization package
BloodAxe Aug 3, 2023
912b0d8
Merge remote-tracking branch 'origin/feature/SG-1001' into feature/SG…
BloodAxe Aug 3, 2023
2f0ef9b
Added printin of user-friendly description on how to use the exported…
BloodAxe Aug 3, 2023
418ab1b
Update docs
BloodAxe Aug 4, 2023
948f9f6
Update docs
BloodAxe Aug 7, 2023
10b4fd3
Uninstall SG
BloodAxe Aug 7, 2023
9ed8511
Added onnx_graphsurgeon
BloodAxe Aug 7, 2023
2c4434d
Added onnx_graphsurgeon
BloodAxe Aug 7, 2023
c7cba74
Put extra index url at the top
BloodAxe Aug 7, 2023
9dddff5
Put extra index url before the package that requires it
BloodAxe Aug 7, 2023
c23042e
Fix --index-url to --extra-index-url
BloodAxe Aug 7, 2023
da95d55
get_requirements to handle --extra-index-url correctly
BloodAxe Aug 7, 2023
5acb9a9
Made method draw_box_title public
BloodAxe Aug 7, 2023
10add2a
Merge branch 'master' into feature/SG-1001
BloodAxe Aug 7, 2023
761653e
Merge branch 'master' into feature/SG-1001
BloodAxe Aug 8, 2023
c9a1d79
Fix tests
BloodAxe Aug 8, 2023
79f2e75
Fix missing HasPredict for BaseClassifier model
BloodAxe Aug 8, 2023
88ce9a7
Merge branch 'master' into feature/SG-1001
BloodAxe Aug 8, 2023
70cb07e
Make quantization parameters overridable
BloodAxe Aug 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ jobs:
command: |
. venv/bin/activate
python3 -m pip install --extra-index-url https://pypi.ngc.nvidia.com .[pro]

- run:
name: install pytorch quantization package
no_output_timeout: 30m
command: |
. venv/bin/activate
python3 -m pip install pytorch-quantization==2.1.2 --extra-index-url https://pypi.ngc.nvidia.com

- run:
name: run tests with coverage
no_output_timeout: 30m
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ recipe_accuracy_tests:
python src/super_gradients/train_from_recipe.py --config-name=cityscapes_regseg48 experiment_name=shortened_cityscapes_regseg48_iou_test epochs=10 training_hyperparams.average_best_models=False multi_gpu=DDP num_gpus=4
python src/super_gradients/examples/convert_recipe_example/convert_recipe_example.py --config-name=cifar10_conversion_params experiment_name=shortened_cifar10_resnet_accuracy_test
coverage run --source=super_gradients -m unittest tests/deci_core_recipe_test_suite_runner.py


examples_to_docs:
jupyter nbconvert --to markdown --output-dir="documentation/source/" --execute src/super_gradients/examples/model_export/models_export.ipynb
Louis-Dupont marked this conversation as resolved.
Show resolved Hide resolved
Loading