-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: network-volume; execution time config; skip default images; acc…
…ess ComfyUI via web (#35) * feat: provide option to run the handler locally as API * ci: run the workflow on our extended instance * feat: the local API should run on 0.0.0.0 * feat: make the image smaller * ci: use semantic-version to create releases automatically * chore: we don't want to break anyone with a minor release * docs: added section for local API testing * ci: use custom runner * fix: added .releaserc, otherwise semantic-release will complain about a missing "package.json" * feat: support network volumes, skip default models (#16) * Support network volumes * README tweaks * docs: added comment on what is happening * feat: don't overwrite the default paths, but add "runpod_worker_comfy" to have additional paths * docs: updated "bring your own models" --------- Co-authored-by: Tim Pietrusky <timpietrusky@gmail.com> * feat: provide access to ComfyUI via web * fix: use the full path to the output image * feat: added env vars COMFY_POLLING_INTERVAL_MS and COMFY_POLLING_MAX_RETRIES * test: added "subfolder" * docs: update CUDA guide for Ubuntu * feat(network-volume): added "custom_nodes" * chore: removed lora from civitai * docs: removed lora from civitai * docs: simplified multiple sections; added an image to describe how to find the endpointID * feat: remove "custom_nodes" * feat: move models before python installation * feat: added "runpod-volume"; use "dev" instead of "latest" * docs: removed "custom nodes"; fixed links to GitHub Actions * docs: fixed typo in GitHub * docs: fixed hosts for local testing * docs: updated link to docs from RunPod to create a network volume * feat: expose the port of ComfyUI * docs: fixed example link to download sdxl-turbo; removed nodes from network volume * docs: moved example response into their own block * chore: added example workflows for webp and sdxl-turbo --------- Co-authored-by: Meptl <git-client@meptl.com>
- Loading branch information
1 parent
15bd612
commit 070cde5
Showing
10 changed files
with
422 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
runpod_worker_comfy: | ||
base_path: /runpod-volume | ||
checkpoints: models/checkpoints/ | ||
clip: models/clip/ | ||
clip_vision: models/clip_vision/ | ||
configs: models/configs/ | ||
controlnet: models/controlnet/ | ||
embeddings: models/embeddings/ | ||
loras: models/loras/ | ||
upscale_models: models/upscale_models/ | ||
vae: models/vae/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"input": { | ||
"workflow": { | ||
"3": { | ||
"inputs": { | ||
"seed": 457699577674669, | ||
"steps": 3, | ||
"cfg": 1.5, | ||
"sampler_name": "euler_ancestral", | ||
"scheduler": "normal", | ||
"denoise": 1, | ||
"model": ["4", 0], | ||
"positive": ["6", 0], | ||
"negative": ["7", 0], | ||
"latent_image": ["5", 0] | ||
}, | ||
"class_type": "KSampler", | ||
"_meta": { | ||
"title": "KSampler" | ||
} | ||
}, | ||
"4": { | ||
"inputs": { | ||
"ckpt_name": "sd_xl_turbo_1.0_fp16.safetensors" | ||
}, | ||
"class_type": "CheckpointLoaderSimple", | ||
"_meta": { | ||
"title": "Load Checkpoint" | ||
} | ||
}, | ||
"5": { | ||
"inputs": { | ||
"width": 1024, | ||
"height": 1024, | ||
"batch_size": 1 | ||
}, | ||
"class_type": "EmptyLatentImage", | ||
"_meta": { | ||
"title": "Empty Latent Image" | ||
} | ||
}, | ||
"6": { | ||
"inputs": { | ||
"text": "ancient rome, 4k photo", | ||
"clip": ["4", 1] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
} | ||
}, | ||
"7": { | ||
"inputs": { | ||
"text": "text, watermark, blurry, ugly, deformed", | ||
"clip": ["4", 1] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
} | ||
}, | ||
"8": { | ||
"inputs": { | ||
"samples": ["3", 0], | ||
"vae": ["4", 2] | ||
}, | ||
"class_type": "VAEDecode", | ||
"_meta": { | ||
"title": "VAE Decode" | ||
} | ||
}, | ||
"9": { | ||
"inputs": { | ||
"filename_prefix": "images/rome", | ||
"images": ["8", 0] | ||
}, | ||
"class_type": "SaveImage", | ||
"_meta": { | ||
"title": "Save Image" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"input": { | ||
"workflow": { | ||
"3": { | ||
"inputs": { | ||
"seed": 416138702284529, | ||
"steps": 20, | ||
"cfg": 8, | ||
"sampler_name": "euler", | ||
"scheduler": "normal", | ||
"denoise": 1, | ||
"model": ["4", 0], | ||
"positive": ["6", 0], | ||
"negative": ["7", 0], | ||
"latent_image": ["5", 0] | ||
}, | ||
"class_type": "KSampler", | ||
"_meta": { | ||
"title": "KSampler" | ||
} | ||
}, | ||
"4": { | ||
"inputs": { | ||
"ckpt_name": "v1-5-pruned-emaonly.safetensors" | ||
}, | ||
"class_type": "CheckpointLoaderSimple", | ||
"_meta": { | ||
"title": "Load Checkpoint" | ||
} | ||
}, | ||
"5": { | ||
"inputs": { | ||
"width": 512, | ||
"height": 512, | ||
"batch_size": 1 | ||
}, | ||
"class_type": "EmptyLatentImage", | ||
"_meta": { | ||
"title": "Empty Latent Image" | ||
} | ||
}, | ||
"6": { | ||
"inputs": { | ||
"text": "beautiful scenery nature glass bottle landscape, purple galaxy bottle,", | ||
"clip": ["4", 1] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
} | ||
}, | ||
"7": { | ||
"inputs": { | ||
"text": "text, watermark", | ||
"clip": ["4", 1] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
} | ||
}, | ||
"8": { | ||
"inputs": { | ||
"samples": ["3", 0], | ||
"vae": ["4", 2] | ||
}, | ||
"class_type": "VAEDecode", | ||
"_meta": { | ||
"title": "VAE Decode" | ||
} | ||
}, | ||
"10": { | ||
"inputs": { | ||
"output_path": "output_path", | ||
"filename_prefix": "filename_prefix", | ||
"filename_delimiter": "___", | ||
"filename_number_padding": 4, | ||
"filename_number_start": "false", | ||
"extension": "webp", | ||
"quality": 10, | ||
"lossless_webp": "false", | ||
"overwrite_mode": "false", | ||
"show_history": "false", | ||
"show_history_by_prefix": "false", | ||
"embed_workflow": "false", | ||
"show_previews": "false", | ||
"images": ["8", 0] | ||
}, | ||
"class_type": "Image Save", | ||
"_meta": { | ||
"title": "Image Save" | ||
} | ||
}, | ||
"11": { | ||
"inputs": { | ||
"images": ["8", 0] | ||
}, | ||
"class_type": "PreviewImage", | ||
"_meta": { | ||
"title": "Preview Image" | ||
} | ||
}, | ||
"12": { | ||
"inputs": { | ||
"images": ["8", 0] | ||
}, | ||
"class_type": "PreviewImage", | ||
"_meta": { | ||
"title": "Preview Image" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters