Skip to content
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

[SoloV2] Zero Dim的问题已经导致SoloV2无法工作 #8643

Closed
3 tasks done
engineer1109 opened this issue Sep 21, 2023 · 1 comment · Fixed by #8644
Closed
3 tasks done

[SoloV2] Zero Dim的问题已经导致SoloV2无法工作 #8643

engineer1109 opened this issue Sep 21, 2023 · 1 comment · Fixed by #8644
Labels
bug Something isn't working

Comments

@engineer1109
Copy link

问题确认 Search before asking

  • 我已经查询历史issue,没有发现相似的bug。I have searched the issues and found no similar bug report.

Bug组件 Bug Component

Export

Bug描述 Describe the Bug

看Paddle issue
PaddlePaddle/Paddle#57570

Slice的结果现在会出现0Dim,导致SoloV2出错

solov2 受影响的代码
solov2_head.py

    def get_seg_single(self, cate_preds, seg_preds, kernel_preds, featmap_size,
                       im_shape, scale_factor):
        """
        The code of this function is based on:
            https://github.com/WXinlong/SOLO/blob/master/mmdet/models/anchor_heads/solov2_head.py#L385
        """
        h = paddle.cast(im_shape[0], 'int32')[0]
        w = paddle.cast(im_shape[1], 'int32')[0]

还有很多地方有影响

复现环境 Environment

版本 develop PaddlePaddle/Paddle@275ca6b

Bug描述确认 Bug description confirmation

  • 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.

是否愿意提交PR? Are you willing to submit a PR?

  • 我愿意提交PR!I'd like to help by submitting a PR!
@engineer1109 engineer1109 added the bug Something isn't working label Sep 21, 2023
@engineer1109
Copy link
Author

#8644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant