Commit 2a13579
Fix PSPNet ONNX export issue (#1270)
* fix(pspnet): fix ONNX export by replacing AdaptiveAvgPool2d with interpolate
* fix: restore state_dict compatibility and handle ONNX export in forward
* Update segmentation_models_pytorch/decoders/pspnet/decoder.py
* fix: support ONNX export and TorchScript for PSPNet
---------
Co-authored-by: Raphael Lapertot <raphael.lapertot@gmail.com>
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>1 parent 5c0278f commit 2a13579
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
| |||
0 commit comments