{"id":16137667,"url":"https://github.com/rockerboo/sd-ext","last_synced_at":"2025-03-18T16:30:34.383Z","repository":{"id":208772820,"uuid":"722450831","full_name":"rockerBOO/sd-ext","owner":"rockerBOO","description":"Scripts and extensions for Stable Diffusion","archived":false,"fork":false,"pushed_at":"2025-01-28T00:05:47.000Z","size":536,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T10:50:20.631Z","etag":null,"topics":["accelerate","diffusers","python","pytorch","stable-diffusion","transformers"],"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/rockerBOO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"rockerBOO"}},"created_at":"2023-11-23T07:14:36.000Z","updated_at":"2025-01-28T00:05:50.000Z","dependencies_parsed_at":"2023-12-13T20:09:35.626Z","dependency_job_id":"99dcaf14-fa9e-41bb-a196-73989a256fff","html_url":"https://github.com/rockerBOO/sd-ext","commit_stats":null,"previous_names":["rockerboo/sd-ext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Fsd-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Fsd-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Fsd-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockerBOO%2Fsd-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rockerBOO","download_url":"https://codeload.github.com/rockerBOO/sd-ext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940088,"owners_count":20372045,"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":["accelerate","diffusers","python","pytorch","stable-diffusion","transformers"],"created_at":"2024-10-09T23:28:53.998Z","updated_at":"2025-03-18T16:30:34.045Z","avatar_url":"https://github.com/rockerBOO.png","language":"Python","readme":"# SD Extensions\n\n\u003c!--toc:start--\u003e\n\n- [SD Extensions](#sd-extensions)\n  - [Analysis](#analysis)\n  - [Pruning](#pruning)\n  - [Extracting](#extracting)\n  - [Convert](#convert)\n  - [Inference](#inference)\n  - [Metadata](#metadata)\n  - [Install](#install)\n    - [Install using venv virtual environment](#install-using-venv-virtual-environment)\n  - [Usage](#usage)\n  \u003c!--toc:end--\u003e\n\nScript's I use with Stable Diffusion\n\n## Analysis\n\n- debug_vae_from_images.py\n- clip_score.py\n- clip_arch.py\n- clip_embeddings.py\n- clip_image_embeddings.py\n- clip_iqa.py\n- image_similarity.py\n- check_norms.py\n- fid.py\n\n## Pruning\n\n- scale_norms.py\n- drop_keys.py\n\n## Extracting\n\n- extract_lora_block.py\n\n## Convert\n\n- convert_safetensors.py\n- batch_bundle_convert.py\n\n## Inference\n\n- sdv.py\n- sdxl-turbo.py\n- wuerstechen.py\n- moondream.py\n- segmoe_run.py\n- sd_dpo.py\n\n## Metadata\n\n- read-metadata.py\n\n## Install\n\nRecommended cloning into another repository to use their dependencies.\n\n### Install using venv virtual environment\n\n```bash\npython -m venv venv\nsource ./venv/bin/activate # linux\ncall .\\venv\\Scripts\\activate.bat # windows\n\n# PyTorch. Get the version that works for your computer.\n# https://pytorch.org/get-started/locally/\n```\n\nPick A or B to install dependencies\n\n### A) (Optional) Install dependencies using poetry [recommended]\n\n```bash\npoetry install\n```\n\nThen run with `poetry run`\n\n```bash\npoetry run python read-metadata.py myfile.safetensors\n```\n\n### B) (Optional) Install dependencies using PIP\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\nScript's should be setup for accelerate so launch the scripts like\n\n```\naccelerate launch check_norms.py\n```\n\nFor each script check the help menu for how to use.\n\n```\npython check_norms.py --help\n```\n","funding_links":["https://github.com/sponsors/rockerBOO"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockerboo%2Fsd-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockerboo%2Fsd-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockerboo%2Fsd-ext/lists"}