{"id":13456171,"url":"https://github.com/harubaru/discord-stable-diffusion","last_synced_at":"2025-03-24T09:31:38.265Z","repository":{"id":58588981,"uuid":"528925618","full_name":"harubaru/discord-stable-diffusion","owner":"harubaru","description":"A neat Discord bot to run Stable Diffusion locally","archived":false,"fork":false,"pushed_at":"2022-11-07T21:13:47.000Z","size":159,"stargazers_count":178,"open_issues_count":7,"forks_count":42,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-28T23:33:52.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harubaru.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}},"created_at":"2022-08-25T16:09:21.000Z","updated_at":"2024-08-20T16:33:54.000Z","dependencies_parsed_at":"2023-01-21T08:01:18.150Z","dependency_job_id":null,"html_url":"https://github.com/harubaru/discord-stable-diffusion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harubaru%2Fdiscord-stable-diffusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harubaru%2Fdiscord-stable-diffusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harubaru%2Fdiscord-stable-diffusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harubaru%2Fdiscord-stable-diffusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harubaru","download_url":"https://codeload.github.com/harubaru/discord-stable-diffusion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245243325,"owners_count":20583607,"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-07-31T08:01:17.226Z","updated_at":"2025-03-24T09:31:37.701Z","avatar_url":"https://github.com/harubaru.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Shanghai - AI Powered Art in a Discord Bot!\n\n\u003cimg src=https://cdn.discordapp.com/attachments/971549874514444358/1012400070559277086/1502073419.png?3867929 width=50% height=50%\u003e\n\n### Any questions or need help? Come hop on by to our Discord server!\n\n[![Discord Server](https://discordapp.com/api/guilds/930499730843250783/widget.png?style=banner2)](https://discord.gg/Sx6Spmsgx7)\n\n\n## Setup\nMake sure you have the [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) installed\n\nClone the repository and enter it\n````\ngit clone https://github.com/harubaru/discord-stable-diffusion.git\ncd discord-stable-diffusion\n````\n\n#### WINDOWS SETUP\nRun `setup.bat`. If you run into any errors, try running the file as administrator\n\nIf you are on a Windows 10 system, run `win10patch.bat`\n\nModify the `run.bat` file, where\n* `--model_path` is the path to the model (make sure to replace any backslashes with double backslashes),\n* `--token=` is the token to the Discord bot\n* `--hf_token=` is your huggingface token (can be found [here](https://huggingface.co/settings/tokens))\n\nRun the `run.bat` file\n#### LINUX SETUP\nRun `./setup.sh`. If you run into any errors, try using `sudo ./setup.sh`\n\nModify the `run.sh` file, where\n* `--model_path` is the path to the model,\n* `--token=` is the token to the Discord bot\n* `--hf_token=` is your huggingface token (can be found [here](https://huggingface.co/settings/tokens))\n\nRun `./run.sh`\n\n### Quickstart\n#### Text to Image\n\nTo generate an image from text, use the ``/dream`` command and include your prompt as the query. There's tons of parameters to play with so go wild!\n\n![image](https://user-images.githubusercontent.com/26317155/186722689-3cbca12a-531c-47f7-b87f-99918e9ed232.png)\n\n![image](https://user-images.githubusercontent.com/26317155/186721768-3684f629-90c3-4ef2-82b8-1310200df437.png)\n\n\n#### Image to Image\n\nTo generate an image from another image, use the ``/dream`` command and include the `init_image` and `strength` parameters. The image needs to be attached to the message.\n\n![image](https://user-images.githubusercontent.com/26317155/186722463-ec3a6d24-36c1-48f8-b09a-57651706848c.png)\n\n![image](https://user-images.githubusercontent.com/26317155/186722528-7e652a21-fd02-4071-9fc1-87a31dfb6e63.png)\n\n\n#### (Experimental) Inpainting\n\nTo fill in a mask in an image, supply a prompt, the `init_image`, `mask_image` and `strength` parameters. The mask needs to consist of black pixels in a transparent image.\n\n![image](https://user-images.githubusercontent.com/26317155/186722970-71a662dc-16a8-4bb4-8696-3bafb3e08e65.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharubaru%2Fdiscord-stable-diffusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharubaru%2Fdiscord-stable-diffusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharubaru%2Fdiscord-stable-diffusion/lists"}