{"id":38020312,"url":"https://github.com/ansemjo/diffusionbooth","last_synced_at":"2026-01-16T19:28:26.940Z","repository":{"id":211496561,"uuid":"724856958","full_name":"ansemjo/diffusionbooth","owner":"ansemjo","description":"photobooth experiment with stable-diffusion styles","archived":false,"fork":false,"pushed_at":"2024-02-19T11:06:48.000Z","size":27992,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-19T12:38:51.590Z","etag":null,"topics":["generative-ai","generative-art","photo-manipulation","photobooth","stable-diffusion","stable-diffusion-webui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansemjo.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,"dei":null}},"created_at":"2023-11-28T23:42:30.000Z","updated_at":"2024-01-31T09:20:22.000Z","dependencies_parsed_at":"2024-02-19T12:40:46.692Z","dependency_job_id":null,"html_url":"https://github.com/ansemjo/diffusionbooth","commit_stats":null,"previous_names":["ansemjo/diffusionbooth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ansemjo/diffusionbooth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Fdiffusionbooth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Fdiffusionbooth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Fdiffusionbooth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Fdiffusionbooth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansemjo","download_url":"https://codeload.github.com/ansemjo/diffusionbooth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansemjo%2Fdiffusionbooth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["generative-ai","generative-art","photo-manipulation","photobooth","stable-diffusion","stable-diffusion-webui"],"created_at":"2026-01-16T19:28:26.279Z","updated_at":"2026-01-16T19:28:26.916Z","avatar_url":"https://github.com/ansemjo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eDiffusion Booth\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    Photobooth × Stable Diffusion\u003cbr\u003e\n    Take a photo and let the AI create a fun and unique portrait of you!\n\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"example.gif\" alt=\"a GIF with examples from the science night\"/\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://csti.haw-hamburg.de/2023/11/21/digital-science-night-5-generation-ai-ich-bin-doch-nur-ein-language-model/\"\u003eThis project was a two-week hack for the 2023 Digital Science Night\u003c/a\u003e\u003cbr\u003e\n    See also: \u003ca href=\"https://github.com/okafke/trAIding-cards\"\u003etr\u003cb\u003eAI\u003c/b\u003eding-cards\u003c/a\u003e\n\u003c/p\u003e\n\n## The Setup\n\nYou'll need:\n\n1. one computer with a powerful GPU and an installation of the [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)\n2. a thin-client computer with a webcam, which can run the frontend in \"kiosk mode\"\n3. lots of light and some props for a scenerey\n\n### 1. Stable-Diffusion-WebUI\n\nFor the general installation, just follow the setup instructions in [their Wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki).\nYou **must** enable the API with `--api` in the `COMMANDLINE_ARGS` variable. If you don't run the frontend on the same computer, you also need to listen on a reachable IP with `--listen`.\n\nThen, the [ControlNets extension](https://github.com/Mikubill/sd-webui-controlnet.git) is required because control nets are an essential part of getting pictures with some resemblance at all. Open the Web UI and navigate to Extensions \u003e \"Install from URL\".\n\nAnd finally, you need all the models of course. I don't want to make my University's GitLab team angry, so I won't put them into the repository. But you can find the models on [huggingface.co](https://huggingface.co/) and [civtai.com](https://civitai.com/); the names, direct download links and hashes of the necessary models are noted in [`models.md`](./models.md).\n\nYou **should enable larger cache** for ControlNet models! Otherwise they need to be reloaded for every API call, which takes unecessarily long time. Go to [Settings \u003e ControlNet (left) \u003e increase \"Model cache size\"](https://github.com/Mikubill/sd-webui-controlnet/issues/429#issuecomment-1449200295).\n\nDuring the Digital Science Night, we used a computer with an Nvidia RTX 4070 Ti, which was snappy enough to be fun. An 1080 Ti was \"fine\" but already a little too slow.\n\n### 2. Run the Frontend\n\n![](example.jpg)\n\nThe frontend is built with Vue.js and can be built with `yarn install \u0026\u0026 yarn run dev`, followed by opening the link in your favourite browser. Preferably, use Firefox in Kiosk mode and just remove the keyboard:\n\n```\nfirefox -kiosk http://localhost:5173/\n```\n\nYou'll want to change two things in the code:\n* Point the `/sdapi` proxy in `vite.config.ts` to your own Stable-Diffusion-WebUI API.\n* Host your own `fileserver/fileserver.py` somewhere and point the URL in `App.vue`'s `upload()` function to it.\n\nThe user interface should *hopefully* be self-explanatory. Picture capture is additionally bound to `Shift-S`, which can be triggered with a programmable foot pedal, for example.\n\n### 3. Fun\n\nLet your guests have fun with it.\n\nIf you hosted your own fileserver, you can also open its URL on another monitor to show the pictures taken so far in a random gallery.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansemjo%2Fdiffusionbooth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansemjo%2Fdiffusionbooth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansemjo%2Fdiffusionbooth/lists"}