{"id":19046326,"url":"https://github.com/saladtechnologies/stable-diffusion-configurator","last_synced_at":"2025-11-12T05:02:36.518Z","repository":{"id":210954515,"uuid":"727794061","full_name":"SaladTechnologies/stable-diffusion-configurator","owner":"SaladTechnologies","description":"A utility for automatically downloading stable diffusion model weights from civit.ai and the web","archived":false,"fork":false,"pushed_at":"2024-03-26T16:24:17.000Z","size":57,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-01T00:43:08.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/SaladTechnologies.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-12-05T15:32:43.000Z","updated_at":"2023-12-07T15:08:33.000Z","dependencies_parsed_at":"2024-02-26T17:28:15.698Z","dependency_job_id":"c14e3469-9a83-4030-af56-3f5849b9e922","html_url":"https://github.com/SaladTechnologies/stable-diffusion-configurator","commit_stats":null,"previous_names":["saladtechnologies/stable-diffusion-configurator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaladTechnologies/stable-diffusion-configurator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaladTechnologies%2Fstable-diffusion-configurator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaladTechnologies%2Fstable-diffusion-configurator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaladTechnologies%2Fstable-diffusion-configurator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaladTechnologies%2Fstable-diffusion-configurator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaladTechnologies","download_url":"https://codeload.github.com/SaladTechnologies/stable-diffusion-configurator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaladTechnologies%2Fstable-diffusion-configurator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283977736,"owners_count":26926541,"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","status":"online","status_checked_at":"2025-11-12T02:00:06.336Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-08T22:54:20.020Z","updated_at":"2025-11-12T05:02:36.497Z","avatar_url":"https://github.com/SaladTechnologies.png","language":"Shell","readme":"# stable-diffusion-configurator\nA utility for automatically downloading stable diffusion model weights from civit.ai and the web\n\n## Install\n\nTo install the utility, run the following commands:\n```bash\nwget https://raw.githubusercontent.com/SaladTechnologies/stable-diffusion-configurator/main/configure\nchmod +x configure\n```\n\n## Use\n\nTo use the utility, specify the models and the output paths for the models you want to download.\nThis can be done with environment variables or command line arguments, or a mix.\nIf both are present, the command line arguments take precedence.\nThe utility will download the models from civit.ai and the web and save them to the specified paths.\nThe utility will also download the extensions from the specified git urls and save them to the specified paths.\nThe utility logs a JSON manifest of the downloaded models and extensions to the console.\n\n```\nUsage: ./configure [--options] [--help]\n  --ckpt-path \u003cpath\u003e: path where checkpoints should be saved. Env: CKPT_PATH\n  --vae-path \u003cpath\u003e: path where vae weights should be saved. Env: VAE_PATH\n  --controlnet-model-path \u003cpath\u003e: path where controlnet models should be saved. Env: CONTROLNET_MODEL_PATH\n  --lora-path \u003cpath\u003e: path where lora models should be saved. Env: LORA_PATH\n  --extension-path \u003cpath\u003e: path where extensions should be saved. Env: EXTENSION_PATH\n  --civitai-version-ids \u003cids\u003e: comma separated list of civitai version ids. Env: CIVITAI_MODEL_VERSION_IDS\n  --ckpt-urls \u003curls\u003e: comma separated list of urls to download checkpoints from. Env: CKPT_URLS\n  --vae-urls \u003curls\u003e: comma separated list of urls to download vae weights from. Env: VAE_URLS\n  --controlnet-model-urls \u003curls\u003e: comma separated list of urls to download controlnet models from. Env: CONTROLNET_URLS\n  --lora-urls \u003curls\u003e: comma separated list of urls to download lora models from. Env: LORA_URLS\n  --extension-urls \u003curls\u003e: comma separated list of git urls to download extensions from. Env: EXTENSION_URLS\n  --sdxl-base: download SDXL base model. 1 for yes, 0 for no. Default is 0. Env: LOAD_SDXL_BASE\n  --sdxl-refiner: download SDXL refiner model. 1 for yes, 0 for no. Default is 0. Env: LOAD_REFINER\n  --help: print this message\n```\n\n### Example, capturing the manifest\n\n```bash\nmanifest=$(./configure --ckpt-path ./data/models/ckpt --civitai-version-ids 128713)\necho $manifest\n# { \"models\": { \"checkpoints\": [ \"dreamshaper_8.safetensors\" ], \"vae\": [], \"controlnet\": [], \"lora\": [] }, \"extensions\": [], \"sdxl\": false }\n```\n\n## Scripts and Dockerfiles\n\nIn this repo is a script `./build-baked` that provides a consistent build interface for stable diffusion docker images that use this configuration utility.\nIt is intended to paired with `Dockerfile.baked` to build docker images that include the models they need, and will not have to download them at runtime.\nThese \"baked\" images are built from our `dynamic` images, which include the configuration utility and an entrypoint script.\nThe `build-baked` script will build the docker image and tag it with the current git commit hash.\nThere is an ***example*** `entrypoint` script that shows how to use the configuration utility to download the models and extensions.\nYour entrypoint script will need to be specific to the stable diffusion backend you are using.\n\n### ./build-baked\n\n```\nUsage: ./build-baked [OPTIONS]\n\nOptions:\n  --push                          Push the built image to DockerHub. Default: false\n  --civitai-version-ids \u003cv1,v2\u003e   Comma-separated list of CivitAI model version IDs to load. Default: \"\"\n  --load-refiner                  Load the refiner model. Default: false\n  --load-sdxl-base                Load the SDXL base model. Default: false\n  --controlnet-urls \u003curl1,url2\u003e   Comma-separated list of ControlNet download URLs. Default: \"\"\n  --extension-urls \u003curl1,url2\u003e    Comma-separated list of extension Git URLs. Default: \"\"\n  --ckpt-urls \u003curl1,url2\u003e         Comma-separated list of CKPT download URLs. Default: \"\"\n  --vae-urls \u003curl1,url2\u003e          Comma-separated list of VAE download URLs. Default: \"\"\n  --lora-urls \u003curl1,url2\u003e         Comma-separated list of LoRa download URLs. Default: \"\"\n  --tag \u003ctag\u003e                     Tag to use for the image. Defaults to the CivitAI version IDs with a hyphen between them\n  --image \u003cimage\u003e                 Image to build. Default: saladtechnologies/sdnext\n  --base-tag \u003ctag\u003e                Tag to use for the base image. Default: dynamic\n  --base-image \u003cimage\u003e            Base image to use. Default: saladtechnologies/sdnext\n  --help                          Show this message and exit\n  ```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaladtechnologies%2Fstable-diffusion-configurator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaladtechnologies%2Fstable-diffusion-configurator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaladtechnologies%2Fstable-diffusion-configurator/lists"}