{"id":23177283,"url":"https://github.com/haoming02/sd-webui-aaa","last_synced_at":"2026-03-01T15:02:05.385Z","repository":{"id":218667361,"uuid":"741801348","full_name":"Haoming02/sd-webui-aaa","owner":"Haoming02","description":"An Extension for Automatic1111 Webui that generates a mask for Inpainting from the edge of the subject","archived":false,"fork":false,"pushed_at":"2024-03-03T08:08:28.000Z","size":588,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T11:53:35.910Z","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":null,"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-01-11T06:17:47.000Z","updated_at":"2024-05-08T16:09:25.000Z","dependencies_parsed_at":"2024-12-18T06:32:50.260Z","dependency_job_id":"68962a32-44d0-4009-8f55-161dadddcc78","html_url":"https://github.com/Haoming02/sd-webui-aaa","commit_stats":null,"previous_names":["haoming02/sd-webui-aaa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Haoming02/sd-webui-aaa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-aaa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-aaa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-aaa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-aaa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Haoming02","download_url":"https://codeload.github.com/Haoming02/sd-webui-aaa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haoming02%2Fsd-webui-aaa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29973119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T14:44:57.896Z","status":"ssl_error","status_checked_at":"2026-03-01T14:43:27.662Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-18T06:32:41.532Z","updated_at":"2026-03-01T15:02:05.364Z","avatar_url":"https://github.com/Haoming02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# SD Webui Add Anything Anywhere\nThis is an Extension for the [Automatic1111 Webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui), \nwhich automatically generates a mask for Inpainting, from the edges of the specified image.\n\n## But Why?\nWhen you remove the background of a subject and place it on another image, \nthe edge of the subject may still contain some blending artifacts or inconsistency.\nThis can easily be sovlved by doing an Inpaint pass. \nHowever, manually drawing a mask around the edge can be a chore.\nTherefore, use this Extension to automatically generate one for you!\n\n\u003e See also [layerdiffusion](https://github.com/layerdiffusion/sd-forge-layerdiffusion) for cleaner images with no background\n\n## Settings\n\u003cins\u003e**Images**\u003c/ins\u003e\n- **Background:** Background to place the subject on\n- **Foreground:** The subject to place\n  - Requires alpha channel *(transparency)*\n- **Mask Thickness:** The thickness of the generated mask\n  - Adjust this based on the image resolution\n- **Low/High Threshold:** Parameters for the Canny edge detection\n  - Default values should be fine for the most cases\n\n\u003cins\u003e**Movements**\u003c/ins\u003e\n- **X Offset:** Move the subject horizontally\n- **Y Offset:** Move the subject vertically\n- **Rotation:** Rotate the subject\n- **Scale:** Scale the subject\n\n\u003e Spamming this would generate a lot of images in the temporary Gradio directory. \nI recommend you to pre-place the subject instead of using these ~~wacky~~ sliders...\n\n## Example 1\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/man/01.jpg\"\u003e\u003cbr\u003e\n\u003cb\u003e1.\u003c/b\u003e A photo of a man\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/man/02.png\"\u003e\u003cbr\u003e\n\u003cb\u003e2.\u003c/b\u003e Remove background using \u003ca href=\"https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg\"\u003erembg\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/man/03.jpg\"\u003e\u003cbr\u003e\n\u003cb\u003e3.\u003c/b\u003e A photo of a background\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/man/04.jpg\"\u003e\u003cbr\u003e\n\u003cb\u003e4.\u003c/b\u003e Place subject onto the background\u003cbr\u003e\nNotice the grey outline around the subject\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/man/05.png\"\u003e\u003cbr\u003e\n\u003cb\u003e5.\u003c/b\u003e Generate a mask automatically\u003cbr\u003e\n\u003ccode\u003e(Thickness = 10)\u003c/code\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/man/06.jpg\"\u003e\u003cbr\u003e\n\u003cb\u003e6.\u003c/b\u003e Inpaint!\n\u003c/p\u003e\n\n## Example 2\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"samples/apple.jpg\"\u003e\u003cbr\u003e\nPlace objects \u003cb\u003eanywhere\u003c/b\u003e!\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoming02%2Fsd-webui-aaa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaoming02%2Fsd-webui-aaa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoming02%2Fsd-webui-aaa/lists"}