A method of Out Painting In ComfyUI

preview_player
Показать описание
A slightly different way of doing an OutPaint in ComfyUI, a refinement to the method was prompted by a post by Wonderflex on Reddit. It gives you better control of the content and the seams and is a little more flexible than the usual methods. Some have had issues with pixellise. You need to tailor the sizes of the crops for your chosen image. If the crop region is outside the bounds of your image then pixelise has nothing to operate on!
Workflow linked below.

some people have found the Pixelise node gives an error so here is a workflow with an alternative.

Рекомендации по теме
Комментарии
Автор

The best outpaint solution I have ever found on Youtube, thanks a lot.

Gabriecielo
Автор

Very very useful!! I will use this technique of yours a lot. Thanks for sharing the workflow.

elan
Автор

it worked well for me. thank you for sharing

Fakery
Автор

Great video and definitely not an approach i had come across before

andykoala
Автор

(Error solve) Going to try to explain the avoidance of the 'expected 4, got 3' error in the Pixelize (and Pixelate in V2) in a little more detail than Rob has. If you're understanding what the nodes are doing, it will become obvious, so I understand why Rob might not belabor it. However, it won't hurt to spell it out. I think it is easy to assume that a lot of you are bringing in images that are 1024x1024 (the standard for SDXL-based models). The ImageCrop node is attempting to get a sliver from inside your image, so you need to adjust the X value. The X value is where the sliver selection starts. It starts at that point and gets a sliver that is the width setting in the node. If you use Rob's X value of 1476, it is trying to crop a sliver outside of your right margin since 1476 is a starting point greater than your width of 1024. The X value + the width of the sliver MUST be less than the width of your image. So if you have a 1024 image, using an X value of 960 will get a sliver close to where Rob is getting it. It will take the sliver from 960px to 989px. If you're using an image generated from sd1.5 that is 512px wide, your X value for the same exercise would be something like 470. Also important is the ImageCompositeMasked node, where you need to ensure the X value is the width of your original image if you're replicating Rob's exercise of outpainting from the right margin of your image. In general, it would be good to think through the spatial mapping for each step as you go. If you're trying to outpaint from the left margin, all this stuff will need to change accordingly and we can assume you'd need to change the orientation of the sliver selection for vertical outpainting.

JonathanChalker
Автор

Thanks for the workflow and video. And if I want to apply outpainting to Left, top, right y bottom to an image of 1024x1024 should this be the configuration?
Pad Image= Left 256, top 256, right 256, bottom 256. ImageCrop= width 29, height 1024, x 960 y 960. ImageCompositeMasked= x 1024 y 1024. Random Noise= width 256 height 1024.Image Flip= horizontal ?

eltalismandelafe
Автор

Any suggestions on resolving this error: Error occurred when executing Pixelize:
not enough values to unpack (expected 4, got 3)? Tried png and jpg images 768x1024

DerekShenk
Автор

Error occurred when executing Pixelize:

not enough values to unpack (expected 4, got 3)

How to fix this?

sangeethkc
Автор

Is there a way to give you 10 thumbs up?

marcovth
Автор

is it the checkpoint issue if my image is not getting outpainted but only gets some blur?

Sergonizer
Автор

if you the various feature extraction tools to build masks you could adapt this to a generalized image modification tool.

davidbell
Автор

I got an error with color correct ValueError: not enough values to unpack (expected 4, got 3)
anyone know how to fix this??

iresolvers
Автор

Too bad, does not work, an error occurred when running Pixelize:

not enough values for unpacking (expected 4, received 3)

Nojlink
Автор

Hello from Ukraine! I'm writing through Google Translate, so forgive me)
Anyone who has a problem with the Pixelize node error should know that the author made a mistake - he has all the settings for his image size
The author should either provide a calculation of the image size based on the size of the uploaded one, or indicate what size was used in the original, so that it could be calculated
Sincerely, loving Ukraine! Give us weapons!

Shotidyada