-
Notifications
You must be signed in to change notification settings - Fork 2
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
关于训练时候的一些问题 #12
Comments
Yes, the denoise is operated on every patch. Based on your setting, there are 44 patches for one single 256256 image
|
感谢您的回复,不过我始终没有找到您是如何将多个patch合并输出为一张完整图像的代码。谢谢您的帮助! |
Could refer to this function Line 1104 in f4a9e0a
which includes how to split one image into patches Line 1160 in f4a9e0a
and after the network, concatenate patches back into one image Line 1183 in f4a9e0a
Hope this helps! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者您好,感谢开源您的工作。但是我在复现您代码的时候有个疑惑,请问每次执行扩散过程只在一个随机patch上扩散吗,我好像没有找到如何对patch移动的代码?也就是下面这段代码:
https://github.com/mlpc-ucsd/Patch-DM/blob/f4a9e0ad0fe83115e50f531d7bd2fbe3e326880c/diffusion/base.py#L142
按我的理解,如果original_image=[256*256],patch_size=64,那么应该分成至少16个patch,然后在这16个patch上依次执行forward diffusion, 还是我理解有误呢? 谢谢您
The text was updated successfully, but these errors were encountered: