{"id":21836778,"url":"https://github.com/bes-dev/story-diffusion-runpod-serverless-worker","last_synced_at":"2025-04-14T09:41:49.878Z","repository":{"id":238383648,"uuid":"796429860","full_name":"bes-dev/story-diffusion-runpod-serverless-worker","owner":"bes-dev","description":"StoryDiffusion serverless worker","archived":false,"fork":false,"pushed_at":"2024-05-13T15:00:11.000Z","size":45,"stargazers_count":16,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T23:02:17.323Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bes-dev.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":"2024-05-05T22:41:09.000Z","updated_at":"2025-01-18T13:24:27.000Z","dependencies_parsed_at":"2024-05-13T16:12:42.319Z","dependency_job_id":null,"html_url":"https://github.com/bes-dev/story-diffusion-runpod-serverless-worker","commit_stats":null,"previous_names":["bes-dev/story-diffusion-runpod-serverless-worker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fstory-diffusion-runpod-serverless-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fstory-diffusion-runpod-serverless-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fstory-diffusion-runpod-serverless-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bes-dev%2Fstory-diffusion-runpod-serverless-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bes-dev","download_url":"https://codeload.github.com/bes-dev/story-diffusion-runpod-serverless-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248855959,"owners_count":21172673,"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-27T20:42:43.424Z","updated_at":"2025-04-14T09:41:49.845Z","avatar_url":"https://github.com/bes-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StoryDiffusion: Serverless RunPod Worker\n\n## RunPod Endpoint\n\nThis repository contains the worker for the StoryDiffusion AI Endpoints.\n\n## Docker Image\n\n```bash\ndocker build .\n```\n or\n\n ```bash\n docker pull devbes/story-diffusion-serverless-worker:latest\n ```\n\n## Environment Variables\n\n### S3 storage\n\n- BUCKET_ENDPOINT_URL\n- BUCKET_ACCESS_KEY_ID\n- BUCKET_SECRET_ACCESS_KEY\n\n### Dockerfile configuration\n\n- WORKER_MODEL_NAME (default = SG161222/RealVisXL_V4.0)\n- WORKER_ID_LENGTH (default = 4)\n- WORKER_TOTAL_LENGTH (default = 5)\n- WORKER_SCHEDULER_TYPE (default = euler)\n\n\n## Continuous Deployment\nThis worker follows a modified version of the [worker template](https://github.com/runpod-workers/worker-template) where the Docker build workflow contains additional SD models to be built and pushed.\n\n## API\n\nUse 'img' as a trigger word for personalized generation cases.\n\n```json\n{\n  \"input\": {\n      \"prompts\": [\u003cprompt1:str\u003e, \u003cpromptn:str\u003e],\n      \"negative_prompt\": \u003cnegative_prompt: str\u003e,\n      \"width\": \u003cwidth:int\u003e,\n      \"height\": \u003cheight:int\u003e,\n      \"sa32\": \u003csa32:float\u003e,\n      \"sa64\": \u003csa64:float\u003e,\n      \"guidance_scale\": \u003cguidance_scale:float\u003e,\n      \"num_inference_steps\": \u003cnum_inference_steps:int\u003e,\n      \"seed\": \u003cseed:int\u003e,\n      \"image_ref\": \u003clink to reference image (Optional):str\u003e\n  }\n}\n```\n\nSample request:\n```json\n{\n  \"input\": {\n      \"prompts\": [\"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. discovering a golden key in his grandmother's attic.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. talking to a squirrel in a magical forest.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. jumping on giant marshmallows at the top of a mountain.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. hopping into a boat on a sparkling river.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. talking to a mole in an underground cave.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. dancing at a village festival.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. talking to the squirrel again in the magical forest.\", \"Harold img is a curious and clever boy with bright blue eyes and messy brown hair. He always wears a red hat and carries a tiny backpack full of gadgets. telling his grandmother about his adventure at her home.\"],\n      \"negative_prompt\": \"naked, deformed, bad anatomy, disfigured, poorly drawn face, mutation, extra limb, ugly, disgusting, poorly drawn hands, missing limb, floating limbs, disconnected limbs, blurry, watermarks, oversaturated, distorted hands, amputation\",\n      \"width\": 768,\n      \"height\": 768,\n      \"sa32\": 0.5,\n      \"sa64\": 0.5,\n      \"guidance_scale\": 5.0,\n      \"num_inference_steps\": 25,\n      \"seed\": 42,\n      \"image_ref\": \"https://alpinabook.ru/upload/resize_cache/iblock/8d9/550_800_1/8d9cd63476f15e85f0d8796555ab1e6b.jpg\"\n  }\n}\n```\n\n## Related Resources\n\nThis project is based on original implementation of [StoryDiffusion](https://github.com/HVision-NKU/StoryDiffusion).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-dev%2Fstory-diffusion-runpod-serverless-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbes-dev%2Fstory-diffusion-runpod-serverless-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-dev%2Fstory-diffusion-runpod-serverless-worker/lists"}