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

downsample method comes from where #11

Open
PigsHammer opened this issue Feb 18, 2024 · 1 comment
Open

downsample method comes from where #11

PigsHammer opened this issue Feb 18, 2024 · 1 comment

Comments

@PigsHammer
Copy link

Hello, may I ask which part of the code DAT for Paintery Image Harmonization in Dual Domains in the paper comes from or inherits the downsample method in DAT's networks.py? I couldn't find the answer in the code. If you are willing to answer, I would greatly appreciate it.

@cjy-4
Copy link
Collaborator

cjy-4 commented Jun 4, 2024

Thanks for your attention. Do you mean this function?

def downsample(self, image_tensor, width, height):
image_upsample_tensor = torch.nn.functional.interpolate(image_tensor, size=[width, height])
image_upsample_tensor = image_upsample_tensor.clamp(0, 1)
return image_upsample_tensor

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