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

RandomDistort: uint范围溢出会导致归一化不符合预期 #8613

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

ucsk
Copy link
Contributor

@ucsk ucsk commented Sep 9, 2023

  1. RandomDistort存在增强后图像溢出uint的问题,这样会使得NormalizeImage不符合常规预期;
  2. RandomDistort.apply_brightness()在类的默认参数配置下起的作用很小;

修改后的RandomDistort经过 ppyoloe/application/ppyoloe_plus_crn_m_80e_coco_pretrained_exdark 测试,mAP由58.1增加到58.6。

The original enhancement will overflow the uint range, making image standardization [0,1] ineffective.

The original random brightness has a small effect.
@paddle-bot
Copy link

paddle-bot bot commented Sep 9, 2023

Thanks for your contribution!

Copy link
Collaborator

@shiyutang shiyutang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@shiyutang shiyutang merged commit 7d6dc40 into PaddlePaddle:develop Sep 27, 2023
@ucsk ucsk deleted the patch-1 branch September 30, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants