Go to OpenArt main site
Upload workflow

Image Expander with Optional Repaint

5.0

0 reviews
8
3.1K
693
1
Description

What this workflow does

Sometimes you have an image, that needs to be a little bigger to maintain 300 DPI when printed. This workflow allows you expand the area of an image without writing a prompt. It also allows you to use the MaskEditor at the same time to in-paint parts of the image.


How to use this workflow

You need a clip_vision model, inpainting model and a base model capable of the types of images you want to expand. For SDXL you can use:

https://huggingface.co/comfyanonymous/clip_vision_g/blob/main/clip_vision_g.safetensors

https://huggingface.co/diffusers/stable-diffusion-xl-1.0-inpainting-0.1/resolve/main/unet/diffusion_pytorch_model.fp16.safetensors

You will need to set by how much you want to expand the canvas and on which sides. If you use inpainting at the same time the X&Y in MaskComposite needs to match the left and top in Pad image for outpainting.


Tips about this workflow

The clip vision is optional and can be bypassed by joining up the rerouter nodes. Write a prompt in the text_g box instead.

The in-painting is optional and can be bypassed by joining up the rerouter nodes. TO access the mask editor, right click on the load image node and pick Open in MaskEditor. Use the tool to colour over all the things you want to be repainted.

The outpainting may not work if your image is out of sample for what the clip_vision model was trained on.

Discussion

(No comments yet)

Loading...

Author

6
4.3K
64
18.2K

No reviews yet

  • - latest (5 months ago)

Primitive Nodes (8)

Reroute (8)

Custom Nodes (21)

ComfyUI

  • - LoadImage (1)

  • - CLIPVisionEncode (1)

  • - SolidMask (1)

  • - MaskComposite (2)

  • - ImagePadForOutpaint (1)

  • - MaskToImage (1)

  • - CLIPTextEncodeSDXL (1)

  • - CLIPTextEncode (1)

  • - ConditioningZeroOut (1)

  • - unCLIPConditioning (1)

  • - PreviewImage (2)

  • - CLIPVisionLoader (1)

  • - CheckpointLoaderSimple (1)

  • - UNETLoader (1)

  • - VAEEncodeForInpaint (1)

  • - VAEDecode (1)

  • - SaveImage (1)

  • - KSampler (1)

stability-ComfyUI-nodes

  • - GetImageSize (1)

Checkpoints (1)

sdxl-dpo-v1.safetensors

LoRAs (0)