If using Inpaint of StableDiffusion, you can modify specific part of image or add new element. In this article, I explain specific procedure to perform Inpaint with StableDiffusion using ComfyUI.
Work Flow
1. Introduction of ComfyUI
Please refer to this article.
>-
2. Creation of Workflow
Yellow is added node.

Referencing below. https://comfyanonymous.github.io/ComfyUI_examples/inpaint/
3. Creation of mask
- Right click
Load Imageand select item calledOpen in Mask Editor - Paint part you want to Mask black.
- Click
Save to nodeand complete


Note: Initial Mi〇ey had art style not matching and didn’t go well so I gave up
4. Generate
Write what you want to generate in masked part in prompt and generate.
Generation Result
Masked only sky of famous xp wallpaper

Prompt
apocalyptic scene, meteors falling, stars, colonies, numerous explosions, intense fire, smoke, numerous meteors, dramatic sky, destruction, detailed environment, high-quality, 4K, dynamic lighting, realistic textures, dark atmosphere, cinematic, depth of field, chaos, ruins, concept art, artstation, vibrant colors, embedding:DarkFantasy,

Image with apocalyptic feeling was generated nicely.
Conclusion
This time, I explained method to perform Inpaint using StableDiffusion. By mastering Inpaint technology, masking specific part and adding new element becomes possible, enabling diverse expression. I am happy if this article becomes reference for image editing using StableDiffusion.
If you want to try other techniques related to image generation, please utilize the link collection below.
>-









