-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
add tool pytorch2torchscript #469
Conversation
Codecov Report
@@ Coverage Diff @@
## master #469 +/- ##
==========================================
- Coverage 86.58% 86.50% -0.08%
==========================================
Files 97 97
Lines 4964 4966 +2
Branches 807 806 -1
==========================================
- Hits 4298 4296 -2
- Misses 514 517 +3
- Partials 152 153 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@xvjiarui Hi, any review or suggest? |
Sorry for the late review. Code looks good to me. Only a few comments. |
@xvjiarui the pytorch version assert message is fixed. And the codecov's problem does not seem to be caused by this PR. |
* add tool pytorch2torchscript * fix the assert message for pytorch version.
* add albu * remove Normalize * resolve comments * albu to albumentation * add an example for keymap
This PR contribute the feature that could convert the
PyTorch(.pth)
model toTorchScript(.pt)
model. So that the MMSeg model can be used in LibTorch with C++.This repo mmseg-libtorch show the usage and result.
It's exactly the same between the
PyTorch(.pth)
andTorchScript(.pt)
result.Some examples:
DeepLabV3+ - PascalVoc
FCN - ADE