{"id":16739979,"url":"https://github.com/fofr/cog-comfyui-sd3","last_synced_at":"2025-03-21T22:31:32.873Z","repository":{"id":244070073,"uuid":"814179241","full_name":"fofr/cog-comfyui-sd3","owner":"fofr","description":"Cog template for Stable Diffusion 3 (ComfyUI implementation)","archived":false,"fork":false,"pushed_at":"2024-07-16T15:49:49.000Z","size":85,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T05:34:52.704Z","etag":null,"topics":["ai","cog","comfyui","replicate","sd3","stable-diffusion"],"latest_commit_sha":null,"homepage":"https://replicate.com/stability-ai/stable-diffusion-3","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/fofr.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-06-12T13:45:09.000Z","updated_at":"2025-03-10T02:32:43.000Z","dependencies_parsed_at":"2024-07-16T16:39:44.398Z","dependency_job_id":null,"html_url":"https://github.com/fofr/cog-comfyui-sd3","commit_stats":null,"previous_names":["fofr/cog-comfyui-sd3"],"tags_count":0,"template":true,"template_full_name":"replicate/cog-comfyui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-comfyui-sd3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-comfyui-sd3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-comfyui-sd3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-comfyui-sd3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fofr","download_url":"https://codeload.github.com/fofr/cog-comfyui-sd3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880202,"owners_count":20525505,"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":["ai","cog","comfyui","replicate","sd3","stable-diffusion"],"created_at":"2024-10-13T00:55:25.601Z","updated_at":"2025-03-21T22:31:32.524Z","avatar_url":"https://github.com/fofr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cog template for Stable Diffusion 3 (ComfyUI implementation)\n\n[![Replicate demo and cloud API](https://replicate.com/stability-ai/stable-diffusion-3/badge)](https://replicate.com/stability-ai/stable-diffusion-3)\n\n\u003e Run Stable Diffusion 3 with an API on Replicate:\n\u003e\n\u003e https://replicate.com/stability-ai/stable-diffusion-3\n\nThis is an implementation of Stability AI's [Stable Diffusion 3](https://stability.ai/news/stable-diffusion-3-medium) as a [Cog](https://github.com/replicate/cog) model.\n\nStable Diffusion 3 has [a non-commercial license](https://huggingface.co/stabilityai/stable-diffusion-3-medium/blob/main/LICENSE). [stability-ai/stable-diffusion-3](https://replicate.com/stability-ai/stable-diffusion-3) on Replicate is licensed and can be used for commercial work, but if you want to use custom versions built from this repository for commercial work, you'll need to buy [a commercial license](https://stability.ai/license).\n\nThis Cog implementation uses ComfyUI and is based on https://github.com/fofr/cog-comfyui. If you prefer to use diffusers, check out our diffusers implementation: https://github.com/replicate/cog-stable-diffusion-3\n\n## Local Usage\n\nFor a local prediction, run:\n\n```bash\ncog predict -i prompt=\"a photo of a cool dog\"\n```\n\n\n## Accessing the local ComfyUI server\n\nThe local ComfyUI server is available at [http://localhost:8000](http://localhost:8000).\n\n1. **GPU Machine**: Start the Cog container and expose port 8188 so you can access it:\n```sh\nsudo cog run -p 8188 bash\n```\n\n2. **Inside Cog Container**: Now that we have access to the Cog container, we start the server, binding to all network interfaces:\n```sh\ncd ComfyUI/\npython main.py --listen 0.0.0.0\n```\n\n3. **Local Machine**: Access the server using your GPU machine's IP and the exposed port (8188):\n`http://\u003cgpu-ip\u003e:8188`\n\nNow if you visit `http://\u003cgpu-ip\u003e:8188` you’ll see the classic ComfyUI server. You can load in the `workflow_api.json` or `workflow_ui.json` file to get started.\n\n\nYou’ll also need a copy of the Stable Diffusion 3 weights.\n\nFirst get access by filling out the form on the [weights page](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers/tree/main). You’ll need to download `sd3_medium_incl_clips_t5xxlfp8.safetensors` to the `ComfyUI/models/checkpoints` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofr%2Fcog-comfyui-sd3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffofr%2Fcog-comfyui-sd3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofr%2Fcog-comfyui-sd3/lists"}