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

The interpolation used to upsample/downsample the image #3

Open
KevinWang676 opened this issue Jul 7, 2023 · 2 comments
Open

The interpolation used to upsample/downsample the image #3

KevinWang676 opened this issue Jul 7, 2023 · 2 comments

Comments

@KevinWang676
Copy link

KevinWang676 commented Jul 7, 2023

Hi, I'm trying to understand the math part of your algorithm. And I wonder which interpolation you use in order to upsample/downsample the image. I saw both LANCZOS and BILINEAR interpolation in function.py, so I'm a little confused. Could you explain how you use these two interpolations? Thank you in advance.

image

@fallenshock
Copy link
Owner

Hi, we use LANCZOS to create the downsampled versions of the image, and BILINEAR to create their blurry upsampled versions for training. We use the same bilinear interpolation during upsampling in the sampling process.

@KevinWang676
Copy link
Author

KevinWang676 commented Jul 15, 2023

Hi, thanks for you reply! It helps a lot. I have another question on the math part.

  • Do you have an exact formula for the relationship between $x_{t}^{s}$ and $x_{t-1}^{s}$?

Because in your paper there is only the relationship between $x_{t}^{s}$ and $x_{t}^{s, \text{mix}}$ as shown below

$x_{t}^{s} = \sqrt{\bar{\alpha}_t} x_{t}^{s, \text{mix}} + \sqrt{1-\bar{\alpha}_t} \epsilon$

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