GiusTex / ComfyUI-DiffusersImageOutpaint

Diffusers Image Outpaint for ComfyUI
Apache License 2.0
49 stars 4 forks source link

How can I outpaint from the center outward? #15

Open arso7 opened 1 week ago

arso7 commented 1 week ago

No matter what size image I input, it seems like there's no outpainting. Am I doing something wrong? 2024-10-26 125230

zmwv823 commented 1 week ago

For input images has the same picture aspect ratio as target resolution, need a custom resize option from the huggingface repo.

image

For input image got white edges like in issue , need overlap option to adjust the image to avoid bad results.

image

arso7 commented 1 week ago

For input images has the same picture aspect ratio as target resolution, need a custom resize option from the huggingface repo.

For input image got white edges like in issue , need overlap option to adjust the image to avoid bad results.

Could you explain a bit more? How can I get this custom resize option? Sorry, I'm still quite new to these things, or could you provide some keywords for me to search? Thank you!

GiusTex commented 1 week ago

Could you explain a bit more?

image

I think he means this part, from the filonii's huggingface space, I want to add that as I wrote here, but now I'm busy with other things. He also always writes in caps and bold, it's a bit frustrating. If you want to check filonii's code you can go on the app'code

zmwv823 commented 1 week ago

For input images has the same picture aspect ratio as target resolution, need a custom resize option from the huggingface repo.

For input image got white edges like in issue , need overlap option to adjust the image to avoid bad results.

Could you explain a bit more? How can I get this custom resize option? Sorry, I'm still quite new to these things, or could you provide some keywords for me to search? Thank you!

Option1: comfy official outpaint nodes:

image

Option2: node from my repo https://github.com/zmwv823/ComfyUI_Ctrlora

image

zmwv823 commented 1 week ago

Could you explain a bit more?

image

I think he means this part, from the filonii's huggingface space, I want to add that as I wrote here, but now I'm busy with other things. He also always writes in caps and bold, it's a bit frustrating. If you want to check filonii's code you can go on the app'code

PIL image process codes in here https://github.com/zmwv823/ComfyUI_Ctrlora/blob/master/UL_common/common.py, mostly from original repo. Take a look if interested and have time.