xiuqhou / Salience-DETR

[CVPR 2024] Official implementation of the paper "Salience DETR: Enhancing Detection Transformer with Hierarchical Salience Filtering Refinement"
https://arxiv.org/abs/2403.16131
Apache License 2.0
105 stars 7 forks source link

Exporting the operator 'aten::_upsample_bilinear2d_aa' to ONNX opset version 17 is not supported #17

Closed yang2021 closed 1 month ago

yang2021 commented 2 months ago
raise errors.UnsupportedOperatorError(

torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::_upsample_bilinear2d_aa' to ONNX opset version 17 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub: https://github.com/pytorch/pytorch/issues. ============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 ============= verbose: False, log level: Level.ERROR ======================= 0 NONE 0 NOTE 0 WARNING 1 ERROR ======================== ERROR: missing-standard-symbolic-function

Exporting the operator 'aten::_upsample_bilinear2d_aa' to ONNX opset version 17 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub: https://github.com/pytorch/pytorch/issues. None

导出onnx模型时报错,这个怎么解决
xiuqhou commented 2 months ago

请将base_detector.py第70行的antialias参数设置为False再进行导出

yang2021 commented 2 months ago

@xiuqhou 谢谢 已成功解决