{"id":20555165,"url":"https://github.com/sjaak31367/a1111-controlnet-batch-preprocessor","last_synced_at":"2025-04-14T12:44:09.439Z","repository":{"id":195105153,"uuid":"692193719","full_name":"sjaak31367/a1111-controlnet-batch-preprocessor","owner":"sjaak31367","description":"A Python script to run a batch of images through ControlNet via A1111's API.","archived":false,"fork":false,"pushed_at":"2024-05-21T18:41:22.000Z","size":1695,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T01:53:33.333Z","etag":null,"topics":["a1111","a1111-stable-diffusion-webui","batch-processing","controlnet","stable-diffusion-webui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjaak31367.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":"2023-09-15T19:19:39.000Z","updated_at":"2024-12-30T03:44:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d676b87a-6cc5-4be0-be23-e7f63bb6a4f6","html_url":"https://github.com/sjaak31367/a1111-controlnet-batch-preprocessor","commit_stats":null,"previous_names":["sjaak31367/a1111-controlnet-batch-preprocessor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjaak31367%2Fa1111-controlnet-batch-preprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjaak31367%2Fa1111-controlnet-batch-preprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjaak31367%2Fa1111-controlnet-batch-preprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjaak31367%2Fa1111-controlnet-batch-preprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjaak31367","download_url":"https://codeload.github.com/sjaak31367/a1111-controlnet-batch-preprocessor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248883341,"owners_count":21177191,"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":["a1111","a1111-stable-diffusion-webui","batch-processing","controlnet","stable-diffusion-webui"],"created_at":"2024-11-16T03:16:50.353Z","updated_at":"2025-04-14T12:44:09.403Z","avatar_url":"https://github.com/sjaak31367.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A1111 ControlNet Batch Pre-processor\n\nA script to apply AUTOMATIC1111's [Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) [ControlNet Extension](https://github.com/Mikubill/sd-webui-controlnet) to a bunch of images with a single click, and store all the outputs, rather than having to run the ControlNet manually for each and every input image.  \n-----\nOriginally made just to speed up running a bunch of video frames through OpenPose, but it might also be useful for other things for other people. :)  \n**It's currently just a stand-alone Python script, but it might be an A1111 Extension at some point (or not).**\n\n## Feature plans:\n- Allow videos as input, and extract frames through FFMPEG.\n- Make this an A1111 Extension.\n\n## Examples:\nInput: Frames as individual files.  \n![image](../assets/input.png)  \nOutput: Processed frames as individual files.  \n![image](../assets/output_Scribble.png.png)\n\n## Requirements:\n[AUTOMATIC1111 Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui),  \n[ControlNet Extension](https://github.com/Mikubill/sd-webui-controlnet),  \n[This repository](https://github.com/sjaak31367/a1111-controlnet-batch-preprocessor)\n\n## Install:\n1. Make sure you have A1111, and the ControlNet extension installed.\n2. Install this repository (Either by hitting the green Code button, or by opening up CMD/GIT_Bash/Terminal and running  \n`git clone https://github.com/sjaak31367/a1111-controlnet-batch-preprocessor.git`).\n3. Run A1111 with `--api` flag.  \n3.1. In `A1111/webui/webui-user.bat` line `set COMMANDLINE_ARGS=` append `--api` and restart A1111 (not just reload).\n\n## Usage:\n1. Have A1111 running. (at 127.0.0.1:7860, or edit in `scripts/script.py`)\n2. Place the images you wish to run through a ControlNet in `inputs/*`.\n3.\n```sh\n$ cd scripts  \n$ python script.py\n```\n4. Wait as the images are run through the ControlNet.  \n5. Results should be in `outputs/*`. :)\n\n## Help:\n```\nusage: script.py [-h] [-u URL] [-c CONTROLNET] [-r RESOLUTION] [-l] [-a ARGA] [-b ARGB]\n\nProcess a batch of images through a ControlNet sequentially.\n\noptions:\n  -h, --help            show this help message and exit\n  -u URL, --url URL     The URL to use to interact with A1111's SD web UI. Default: http://127.0.0.1:7860/\n  -c CONTROLNET, --controlnet CONTROLNET\n                        Which ControlNet to run the input images through. Default: dw_openpose_full\n  -r RESOLUTION, --resolution RESOLUTION\n                        Resolution to run the ControlNet at. Default: 512\n  -l, --list            List out all available ControlNets.\n  -a ARGA, --arga ARGA  First argument passed (like Low Threshold). Defaults can be found by using -c [controlnet] -l\n  -b ARGB, --argb ARGB  Second argument passed (like High Threshold). Defaults can be found by using -c [controlnet] -l\n```\n\n## Credits \u0026 License:\nThis repository: Sjaak31367 and contributors under AGPL-3.0  \nThanks to AUTOMATIC1111 and contributors for creating Stable Diffusion web UI!  \nThanks to Mikubill and contributors for creating ControlNet Extension!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjaak31367%2Fa1111-controlnet-batch-preprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjaak31367%2Fa1111-controlnet-batch-preprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjaak31367%2Fa1111-controlnet-batch-preprocessor/lists"}