{"id":17714327,"url":"https://github.com/williechai/speedup-plugin-for-stable-diffusions","last_synced_at":"2025-03-13T23:30:32.674Z","repository":{"id":212580302,"uuid":"731041479","full_name":"williechai/speedup-plugin-for-stable-diffusions","owner":"williechai","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-22T06:02:44.000Z","size":8946,"stargazers_count":49,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-12-23T04:23:09.406Z","etag":null,"topics":[],"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/williechai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-13T08:28:00.000Z","updated_at":"2023-12-22T09:27:38.000Z","dependencies_parsed_at":"2023-12-22T04:22:16.213Z","dependency_job_id":"499564c0-d16c-4529-8dc3-492cd53f7eed","html_url":"https://github.com/williechai/speedup-plugin-for-stable-diffusions","commit_stats":null,"previous_names":["williechai/speedup-plugin-for-stable-diffusions"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williechai%2Fspeedup-plugin-for-stable-diffusions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williechai%2Fspeedup-plugin-for-stable-diffusions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williechai%2Fspeedup-plugin-for-stable-diffusions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williechai%2Fspeedup-plugin-for-stable-diffusions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williechai","download_url":"https://codeload.github.com/williechai/speedup-plugin-for-stable-diffusions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243499664,"owners_count":20300668,"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":[],"created_at":"2024-10-25T11:02:21.621Z","updated_at":"2025-03-13T23:30:32.666Z","avatar_url":"https://github.com/williechai.png","language":"Python","funding_links":[],"categories":["Accelerate"],"sub_categories":[],"readme":"# speedup-plugin-for-stable-diffusions\n\nThis repo is the official implementation of SpeedUpNet(SUN) in PyTorch. \n\nPaper: [SpeedUpNet: A Plug-and-Play Hyper-Network for Accelerating Text-to-Image Diffusion Models](https://arxiv.org/pdf/2312.08887.pdf)\n\nProject Page: [SpeedUpNet](https://williechai.github.io/speedup-plugin-for-stable-diffusions.github.io/)\n\n\u003cimg src=\"./pics/comparison.jpg\" width=\"100%\" height=\"100%\"\u003e\n\n## 10x speed up on stable diffusions\nIntroducing SUN as a plug-in, a pre-trained SD can generate high-quality images in only 4 steps. We can test on MacBook Pro(M1 Pro):\n\nDPM-Solver++ 20 steps, 16 seconds (baseline)\n\u003cimg src=\"./pics/dpm20.gif\" width=\"100%\" height=\"100%\"\u003e\n\n+SUN, 4 steps, 2 seconds\n\u003cimg src=\"./pics/sun4.gif\" width=\"100%\" height=\"100%\"\u003e\n\nSee more on our [webpage](https://williechai.github.io/speedup-plugin-for-stable-diffusions.github.io/)\n\n## Realtime Controllable Generation\n\nSUN is compatible with controllable tools.\nReal-time rendering can be achieved on high-end consumer-grade graphics cards. \n\n\u003cimg src=\"./pics/cat2.gif\" width=\"100%\" height=\"100%\"\u003e\n\n\u003cimg src=\"./pics/guilin_sun_small.gif\" width=\"100%\" height=\"100%\"\u003e\n\n\u003cimg src=\"./pics/face_sun_small.gif\" width=\"100%\" height=\"100%\"\u003e\n\n\n## Usage\n\n```\ncd demo\n\n# prepare models\n\npython controlnet_lora.py\n```\n\n## Download SUN adapter\n\nhttps://huggingface.co/Williechai/SpeedUpNet/tree/main\n\n## Update\n\n**`2023.12.15`**: Readme.\n\n\n## Citation\nIf you find this work is helpful in your research, please cite our work:\n```\n@misc{chai2023speedupnet,\n      title={SpeedUpNet: A Plug-and-Play Hyper-Network for Accelerating Text-to-Image Diffusion Models}, \n      author={Weilong Chai and DanDan Zheng and Jiajiong Cao and Zhiquan Chen and Changbao Wang and Chenguang Ma},\n      year={2023},\n      eprint={2312.08887},\n      archivePrefix={arXiv},\n      primaryClass={cs.CV}\n}\n```\n\n## Contact\nIf you have any questions, feel free to open an issue or directly contact me via: `weilong.cwl@antgroup.com`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliechai%2Fspeedup-plugin-for-stable-diffusions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliechai%2Fspeedup-plugin-for-stable-diffusions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliechai%2Fspeedup-plugin-for-stable-diffusions/lists"}