{"id":19653689,"url":"https://github.com/brevdev/simple-dreambooth-api","last_synced_at":"2025-04-28T17:31:51.233Z","repository":{"id":105409569,"uuid":"568520667","full_name":"brevdev/simple-dreambooth-api","owner":"brevdev","description":"Simple Fast API server that runs Dreambooth fine-tune jobs using Celery workers 🤙","archived":false,"fork":false,"pushed_at":"2024-06-18T20:26:22.000Z","size":28134,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-05T10:04:43.461Z","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/brevdev.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":"2022-11-20T19:34:01.000Z","updated_at":"2024-06-18T20:26:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdff5a8d-dc32-437b-872b-68c5483328a0","html_url":"https://github.com/brevdev/simple-dreambooth-api","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/brevdev%2Fsimple-dreambooth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brevdev%2Fsimple-dreambooth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brevdev%2Fsimple-dreambooth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brevdev%2Fsimple-dreambooth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brevdev","download_url":"https://codeload.github.com/brevdev/simple-dreambooth-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251355474,"owners_count":21576363,"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-11-11T15:14:52.929Z","updated_at":"2025-04-28T17:31:50.988Z","avatar_url":"https://github.com/brevdev.png","language":"Python","readme":"This is an api runs Dreambooth fine tuning jobs on a single node and queues requests as they come in\n\n## Setup:\n- To create the same deployable Brev environment that runs this API click [here](https://console.brev.dev/environment/new?repo=https://github.com/brevdev/simple-dreambooth-api\u0026instance=g5.2xlarge\u0026diskStorage=100)\n- If you want to run it on your own machine, the .brev/setup.sh script will install everything you need (in the diffusers conda environment).\n\n\n## Start the Redis Server:\n```\nconda activate diffusers\nredis-server\n```\n## Run the Celery worker:\n```\nconda activate diffusers\ncelery -A main.celery worker --loglevel=info --concurrency=1\n```\n\n## Start the Fast API server:\n```\nconda activate diffusers\nhuggingface-cli login\nuvicorn main:app --reload\n```\n\nThen head over to [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) to run the api. The finetune route takes in a zip file of images which is used to fine tune Stable Diffusion.\n\nIn the Brev console, you can forward ports. If you go ahead and forward port 8000 - you'll get a public URL and have created your own Dreambooth API!\n\n\n\nMuch of the code in this implementation was borrowed from [Shivam Shrirao](https://github.com/ShivamShrirao). Huge thanks to him!\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrevdev%2Fsimple-dreambooth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrevdev%2Fsimple-dreambooth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrevdev%2Fsimple-dreambooth-api/lists"}