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

About reference image size #93

Open
szgy66 opened this issue May 17, 2024 · 2 comments
Open

About reference image size #93

szgy66 opened this issue May 17, 2024 · 2 comments

Comments

@szgy66
Copy link

szgy66 commented May 17, 2024

Dear author, thank you for your contribution, I have achieved better results in many scenarios. But recently, I found that when my reference image was very small, about 50x50 in size, the generated effect on the target image was very poor, and even completely inconsistent with my reference image. May I ask why this is? Does anydoor support small-size reference images? Or is there a certain relationship between the mask size of the reference image and the background image to generate better results? Looking forward to your reply

@XavierCHEN34
Copy link
Collaborator

First, make sure that you give the correct formats of reference masks. Our first step is using the reference mask to segment the specific reference object.
Second, AnyDoor would resize the segmented object to 256x256, which fits the input size of DINOv2. So if your image is too small, the resized result would be blurry and vague.

You could attach some of your examples here and let me see whether the results are correct

@szgy66
Copy link
Author

szgy66 commented May 24, 2024

Thank you for your reply. Due to github restrictions, I put the results on the Baidu webdisk(链接:https://pan.baidu.com/s/1pldgGZ1_rv0g9_qhrWlerQ?pwd=6r2i 提取码:6r2i), including the reference image, the background image, and the generated image, the reference image I obtained using segmentanything. From the generated image, the rectangular boundary of the background mask is obvious.

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