-
Notifications
You must be signed in to change notification settings - Fork 463
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
[onnx] classification models export #830
[onnx] classification models export #830
Conversation
Codecov Report
@@ Coverage Diff @@
## main #830 +/- ##
=======================================
Coverage 94.84% 94.85%
=======================================
Files 133 133
Lines 5200 5204 +4
=======================================
+ Hits 4932 4936 +4
Misses 268 268
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* feat: Added new resnets * feat: Added ResNet101 * fix: Fixed ResNet31 & ResNet34 wide * feat: Added new pretrained resnets * style: Fixed isort * fix: Fixed ResNet architectures * refactor: Refactored LinkNet * feat: Added more LinkNets * fix: Fixed MAGResNet * docs: Updated documentation * refactor: Removed ResNet101 * fix: Fixed warning * fix: Fixed a few bugs * test: Updated unittests * docs: Fixed docstrings
* feat: replace bce by focal loss in linknet loss * fix: requested changes * fix: mask reduction * fix: mask reduction * fix: loss reduction * fix: final adjustements * fix: final changes
671f137
to
6511183
Compare
@fg-mindee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, I think the right place for the export_to_onnx() function might be in the package, in the models/utils/export.py file or something like that, what do you think ?
@charlesmindee ok i have moved it to utils/pytorch ftm 👍 and also removed both deps we can use torch.onnx and the quantization maybe later add directtly as one line in the training scripts wdyt ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, it is better without the dep, just need to remove it from the setup file!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this feature !
* backup * onnx classification * fix: Fixed some ResNet architecture imprecisions (mindee#828) * feat: Added new resnets * feat: Added ResNet101 * fix: Fixed ResNet31 & ResNet34 wide * feat: Added new pretrained resnets * style: Fixed isort * fix: Fixed ResNet architectures * refactor: Refactored LinkNet * feat: Added more LinkNets * fix: Fixed MAGResNet * docs: Updated documentation * refactor: Removed ResNet101 * fix: Fixed warning * fix: Fixed a few bugs * test: Updated unittests * docs: Fixed docstrings * update with new models * feat: replace bce by focal loss in linknet loss (mindee#824) * feat: replace bce by focal loss in linknet loss * fix: requested changes * fix: mask reduction * fix: mask reduction * fix: loss reduction * fix: final adjustements * fix: final changes * Revert "feat: replace bce by focal loss in linknet loss (mindee#824)" This reverts commit 6511183. * Revert "fix: Fixed some ResNet architecture imprecisions (mindee#828)" This reverts commit 72e5e0d. * happy codacy * sapply suggestions * fix-setup * remove onnx from test req * move onnx deps ftm to torch * up * up * revert requirements * fix * update docstring * up Co-authored-by: F-G Fernandez <[email protected]> Co-authored-by: Charles Gaillard <[email protected]>
* backup * onnx classification * fix: Fixed some ResNet architecture imprecisions (mindee#828) * feat: Added new resnets * feat: Added ResNet101 * fix: Fixed ResNet31 & ResNet34 wide * feat: Added new pretrained resnets * style: Fixed isort * fix: Fixed ResNet architectures * refactor: Refactored LinkNet * feat: Added more LinkNets * fix: Fixed MAGResNet * docs: Updated documentation * refactor: Removed ResNet101 * fix: Fixed warning * fix: Fixed a few bugs * test: Updated unittests * docs: Fixed docstrings * update with new models * feat: replace bce by focal loss in linknet loss (mindee#824) * feat: replace bce by focal loss in linknet loss * fix: requested changes * fix: mask reduction * fix: mask reduction * fix: loss reduction * fix: final adjustements * fix: final changes * Revert "feat: replace bce by focal loss in linknet loss (mindee#824)" This reverts commit 6511183. * Revert "fix: Fixed some ResNet architecture imprecisions (mindee#828)" This reverts commit 72e5e0d. * happy codacy * sapply suggestions * fix-setup * remove onnx from test req * move onnx deps ftm to torch * up * up * revert requirements * fix * update docstring * up Co-authored-by: F-G Fernandez <[email protected]> Co-authored-by: Charles Gaillard <[email protected]>
Counterpart of #789 for all classifiaction models
Issue:
#789
Any feedback is welcome 🤗