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.
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.
Similarly, change image_6_b64_str to img_6_b64_str. There are 3 places.
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.