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

Update bedrock-titan-image-generator.ipynb #169

Closed sunbc0120 closed 7 months ago

sunbc0120 commented 8 months ago

Issue #, if available:

Description of changes:

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

kai-zhu-aws commented 7 months ago
  1. Regarding the black-white swap, I remeber Kris mentioned there was a bug with Bedrock. Is it fixed? If so, we also need to update the bedrock-titan-image-generator-in-JavaScript.ipynb. In it, there are some mask images with name INVERTED. That was a temporary fix for the bug. Now we need to use the right mask. Also delete the unnecessary mask images.
  2. Regarding image_5_b64_str, yes I made a typo below that line. Instead of changing image_5_b64_str to image_4_b64_str, can you change both lines? Rename them to img_5_b64_str. We use img_x in code above. Better to keep them consistent.
  3. Similarly, change image_6_b64_str to img_6_b64_str. There are 3 places.