Skip to content

terrificdm/BedrockAgent-ComfyUI

Repository files navigation

Demo for Bedrock Agent calling ComfyUI API

Scenario:

Based on your inputs, Bedrock will extract image description then enrich and rewrite it into a Stable Diffusion prompt. After that, it will automatically call ComfyUI by leveraging Bedrock Agent to generate an image for you

  • User inputs can be any language, but eventually, a generated prompt for Stable Diffusion will be English

  • The best input for creating images is providing image description directly, if you provide irrelevant, Claude will ask you for more input, it may cause some confusions, such as prompt not always English, prompt is not enriched, still needs more PE

  • A default "ml.t3.medium" SageMaker notebook instance is sufficient to run the demo(excluding ComfyUI env. You need to set it up first)

  • Check this repo to install ComfyUI on an EC2 srv by AWS CDK

How to use:

Import bedrock_claude_agent_ComfyUI.ipynb to a SageMaker notebook instance, then run it as instructions described

Note:

"bedrock_claude_agent_comfyui.ipynb" and "bedrock_claude_function_calling.ipynb" are demos for Claude(v2) Instant, "bedrock_claude-v3_agent_comfyui.ipynb" and “bedrock_claude-v3_tool_use.ipynb” are demos for Claude-v3 haiku

Others:

"bedrock_claude_function_calling.ipynb" and "bedrock_claude-v3_tool_use.ipynb”" are demos for native function calling capability of Bedrock Claude

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published