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

关于cutout #19

Closed
Renp1ngs opened this issue Jul 17, 2022 · 2 comments
Closed

关于cutout #19

Renp1ngs opened this issue Jul 17, 2022 · 2 comments

Comments

@Renp1ngs
Copy link

Renp1ngs commented Jul 17, 2022

感谢您精彩的工作。我有以下几个问题,希望可以得到您的解答。

  1. 是否可以解释一下代码中cutout的实现呢?这两个变量分别代表什么意思呢?

erase_w = int(np.sqrt(size / ratio))
erase_h = int(np.sqrt(size * ratio))

  1. 请问是否有尝试过用cutmix代替cutout的实验呢?
@LiheYoung
Copy link
Owner

LiheYoung commented Jul 17, 2022

我们主要参考了这里Cutout的实现,ratio能够控制Cutout区域长宽的比例,size是Cutout的面积,erase_herase_w分别是Cutout区域的高度和宽度;

我们有尝试过CutMix,会更好一些。

@Renp1ngs
Copy link
Author

感谢您的回复。

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

No branches or pull requests

2 participants