{"id":17711631,"url":"https://github.com/Haoming02/sd-webui-mosaic-outpaint","last_synced_at":"2025-03-13T19:32:06.976Z","repository":{"id":220268641,"uuid":"751172675","full_name":"Haoming02/sd-webui-mosaic-outpaint","owner":"Haoming02","description":"An Extension for Automatic1111 Webui that trivializes outpainting","archived":false,"fork":false,"pushed_at":"2024-08-09T13:58:59.000Z","size":436,"stargazers_count":97,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T23:06:12.039Z","etag":null,"topics":["stable-diffusion-webui","stable-diffusion-webui-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Haoming02.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-01T04:21:48.000Z","updated_at":"2025-03-11T12:54:18.000Z","dependencies_parsed_at":"2024-08-09T15:19:52.073Z","dependency_job_id":"c7be3f44-b4f1-43ed-8734-e157cccee0eb","html_url":"https://github.com/Haoming02/sd-webui-mosaic-outpaint","commit_stats":null,"previous_names":["haoming02/sd-webui-mosaic-outpaint"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-mosaic-outpaint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-mosaic-outpaint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-mosaic-outpaint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-mosaic-outpaint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Haoming02","download_url":"https://codeload.github.com/Haoming02/sd-webui-mosaic-outpaint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243469252,"owners_count":20295715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["stable-diffusion-webui","stable-diffusion-webui-plugin"],"created_at":"2024-10-25T08:01:44.429Z","updated_at":"2025-03-13T19:32:06.966Z","avatar_url":"https://github.com/Haoming02.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"﻿# SD Webui Mosaic Outpaint\nThis is an Extension for the [Automatic1111 Webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui), which trivializes outpainting via a mosaic pattern,\nwithout the need of ControlNet!\n\nInspired by this [Reddit Post](https://www.reddit.com/r/StableDiffusion/comments/1aexch9/using_mosaic_tiles_to_outpaint_expand_images_3/) by **u/wonderflex**\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/ui.jpg\" width=768\u003e\u003cbr\u003e\nNew \u003cb\u003eMosaic\u003c/b\u003e UI Tab\n\u003c/p\u003e\n\n## How to Use\n1. Inside the **Mosaic** tab, upload an image of choice\n2. Choose the direction(s) to outpaint\n3. Adjust the parameters *(explained below)* as needed\n4. Press **Process Mosaic**\n5. Once the images have been processed, press **Send to Inpaint**\n6. In **img2img** tab, fill out the captions of the image\n    - **eg.** The prompt used during **txt2img**\n7. Set **Inpaint area** to `Whole picture` to keep the coherency; Increase **Mask blur** as needed\n8. Set the **Denoising strength** to `0.9` ~ `1.0`\n9. Set the resolution to **Resize by** `1.0`\n10. Press **Generate** !\n\n#### ControlNet\n5. Alternatively: choose either **txt2img** or **img2img** tab, set the unit of ControlNet,\nthen press **Send to ControlNet**\n6. Set **Control Type** to `Inpaint`\n7. Set **Preprocessor** to `inpaint_only+lama`\n8. Set **Control Mode** to `ControlNet is more important`\n9. Set the resolution accordingly\n10. Press **Generate** !\n\n## Parameters\n- **Directions:** The side of the image to expand\n    - Selecting multiple sides is available\n- **Method:** The method used to fill out the expanded space\n    - **stretch:** Strecth the border of the image outwards *(used in the original post)*\n        - **Stretch %:** The percentage of the expanded area used to stretch\n        - **Stretch Ratio:** The scale of the stretching\n    - **mirror:** Only mirror the image\n- **Horitontal Expand %:** How much to expand in horitonzal direction\n- **Vertical Expand %:** How much to expand in vertical direction\n- **Short-Side Tile Count:** The number of horizontal tiles when expanding horitonzally *(vice versa for vertical)*\n- **Long-Side Tile Count:** The number of vertical tiles when expanding horitonzally *(vice versa for vertical)*\n- **Mask Overlap %:** The percentage of the original image to include in the Inpaint mask\n    - Higher value reduces the seams, but also alters the original image\n\n## Example\n- **Checkpoint:** [Animagine XL V3](https://civitai.com/models/260267)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/input.jpg\" width=512\u003e\u003cbr\u003e\nInput Image\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/mosaic.jpg\" width=512\u003e\u003cbr\u003e\nMosaic Pattern\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/output.jpg\" width=512\u003e\u003cbr\u003e\nFinal Output\n\u003c/p\u003e\n\n## Mosaic Inpaint\nNow also comes with a **Script** for generating mosaic patterns within **Inpaint** masks.\n*(Can also be used in **img2img** to convert the entire image into mosaic patterns before the generation.)*\n\n\u003e See this [thread](https://github.com/Haoming02/sd-webui-mosaic-outpaint/issues/2) for some examples\n\n\u003chr\u003e\n\n**Note:** If you have installed this extension before *(in the **Extensions** tab, it shows the **Branch** of this extension to be `main`)*, please uninstall and reinstall again *(so that it shows `master` instead)*!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHaoming02%2Fsd-webui-mosaic-outpaint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHaoming02%2Fsd-webui-mosaic-outpaint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHaoming02%2Fsd-webui-mosaic-outpaint/lists"}