aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.38k stars 591 forks source link

add examples using maskPrompt to titan image generator model example notebook #162

Closed kai-zhu-aws closed 8 months ago

kai-zhu-aws commented 8 months ago

Issue #, if available:

Description of changes:

  1. For inpaint, added code using "maskPrompt"
  2. For outpaint, added code using "maskPrompt"
  3. In the current notebook https://github.com/aws-samples/amazon-bedrock-workshop/blob/main/05_Image/bedrock-titan-image-generator.ipynb, "outpaint_prompt" was defined, but never used. I updated the code to use "outpaint_prompt". I think the author made a mistake here.
  4. Changed image_4_b64_str to image_5_b64_str, since a new image was generated in my newly added code, and image 4 was used in my new code.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.