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

Fix misalignment between SOT and dynamic mode #256

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

GoldenStain
Copy link
Contributor

@GoldenStain GoldenStain commented Feb 19, 2025

yolov5_loss函数中SOT和动态图的行为没有对齐,导致SOT性能大幅度落后于动态图模式。

forward函数中,还存在一处不对齐行为:

if not self.to_static:
            tcls, tbox, indices, anch = self.build_targets(inputs, targets,
                                                           anchors)
else:
    tcls, tbox, indices, anch = self.build_targets_paddle(
        inputs, targets, anchors)

但是此处对执行性能无明显影响,暂不做出修改。

SOT模式下开启use_shared_memory执行会出错,暂未修复,详见修复记录.

目前开启use_shared_memory的情况下,动转静会报错,暂未修复。

Copy link

paddle-bot bot commented Feb 19, 2025

Thanks for your contribution!

@jerrywgz jerrywgz merged commit 08b36cf into PaddlePaddle:develop Feb 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants