CSAILVision / CSAILVision/semantic-segmentation-pytorch

When trying to export to ONNX, export fails on adaptive_avg_pool2d

Open
#240 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I am trying to convert the models to onnx but the export fails with error

UserWarning: ONNX export failed on adaptive_avg_pool2d because output size that are not factor of input size not supported
warnings.warn("ONNX export failed on " + op + " because " + msg + " not supported")

I tried exporting with ONNX_ATEN_FALLBACK and opset version 9 as well as 11, but same error occurs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.