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

关于混合损失的问题 #13

Open
1741607718 opened this issue Jun 12, 2023 · 2 comments
Open

关于混合损失的问题 #13

1741607718 opened this issue Jun 12, 2023 · 2 comments

Comments

@1741607718
Copy link

我在代码里看见您在计算损失函数时,只计算重建的两张图像被mask区域的损失,对于这一点我没有异议。但是在target的设置上,我看您是直接是用源单张图像作为目标图像标签,而非源混合图像作为目标图像标签。不知道我描述得是否正确,还请您解惑

@xXuHaiyang
Copy link

xXuHaiyang commented Jun 13, 2023

冒昧回答,事实上在这里 unmix_x_rec ,由于 mask_ratio 为 50%,因此 x1_recx2_rec 是“互补”的。这两份“互补”的 tokens 再加起来,就是一张“完全”图像的 reconstruction 结果,对应的 target 也就是单张图像。

@1741607718
Copy link
Author

1741607718 commented Jun 14, 2023 via email

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