{"id":10280,"date":"2025-07-06T02:16:19","date_gmt":"2025-07-05T17:16:19","guid":{"rendered":"https:\/\/aireviewirush.com\/?p=10280"},"modified":"2025-07-06T02:16:19","modified_gmt":"2025-07-05T17:16:19","slug":"amazon-nova-canvas-replace-digital-try-on-and-elegance-choices-now-out-there","status":"publish","type":"post","link":"https:\/\/aireviewirush.com\/?p=10280","title":{"rendered":"Amazon Nova Canvas replace: Digital try-on and elegance choices now out there"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"\">\n<table id=\"amazon-polly-audio-table\">\n<tbody>\n<tr>\n<td id=\"amazon-polly-audio-tab\">\n<div id=\"amazon-polly-by-tab\">\n            <a href=\"https:\/\/aws.amazon.com\/polly\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/a0.awsstatic.com\/aws-blog\/images\/Voiced_by_Amazon_Polly_EN.png\" alt=\"Voiced by Polly\" width=\"554\" height=\"56\"\/><\/a>\n           <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Have you ever ever wished you could possibly shortly visualize how a brand new outfit would possibly look on you earlier than making a purchase order? Or how a bit of furnishings would look in your lounge? Right now, we\u2019re excited to introduce a brand new digital try-on functionality in <a href=\"https:\/\/aws.amazon.com\/ai\/generative-ai\/nova\/creative??trk=ac97e39c-d115-4d4a-b3fe-c695e0c9a7ee&amp;sc_channel=el\" target=\"_blank\" rel=\"noopener\">Amazon Nova Canvas<\/a> that makes this doable. As well as, we&#8217;re including eight new type choices for improved type consistency for text-to-image primarily based type prompting. These options broaden Nova Canvas AI-powered picture technology capabilities making it simpler than ever to create life like product visualizations and stylized pictures that may improve the expertise of your prospects.<\/p>\n<p>Let\u2019s take a fast have a look at how one can begin utilizing these in the present day.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Getting began<\/strong><\/span><br \/>The very first thing is to just be sure you have entry to the Nova Canvas mannequin by means of the standard means. Head to the <a href=\"https:\/\/console.aws.amazon.com\/bedrock?trk=ac97e39c-d115-4d4a-b3fe-c695e0c9a7ee&amp;sc_channel=el\" target=\"_blank\" rel=\"noopener\">Amazon Bedrock console<\/a>, select <strong>Mannequin entry<\/strong> and <a href=\"https:\/\/docs.aws.amazon.com\/nova\/latest\/userguide\/getting-started-console.html#getting-started-access?trk=ac97e39c-d115-4d4a-b3fe-c695e0c9a7ee&amp;sc_channel=el\" target=\"_blank\" rel=\"noopener\">allow Amazon Nova Canvas to your account<\/a> ensuring that you choose the suitable areas to your workloads. If you have already got entry and have been utilizing Nova Canvas, you can begin utilizing the brand new options instantly as they\u2019re robotically out there to you.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Digital try-on<br \/><\/strong><\/span>The primary thrilling new characteristic is <strong>digital try-on<\/strong>. With this, you possibly can add two photos and ask Amazon Nova Canvas to place them along with life like outcomes. These could possibly be photos of attire, equipment, residence furnishings, and some other merchandise together with clothes. For instance, you possibly can present the image of a human because the supply picture and the image of a garment because the reference picture, and Amazon Nova Canvas will create a brand new picture with that very same particular person sporting the garment. Let\u2019s do this out!<\/p>\n<p>My place to begin is to pick out two pictures. I picked considered one of myself in a pose that I feel would work effectively for a garments swap and an image of an AWS-branded hoodie.<\/p>\n<p><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/26\/nova-canvas-source-images.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-97533\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/26\/nova-canvas-source-images.png\" alt=\"Matheus and AWS-branded hoodie\" width=\"2048\" height=\"1251\"\/><\/a><\/p>\n<p>Be aware that Nova Canvas accepts pictures containing a most of 4.1M pixels \u2013 the equal of two,048 x 2,048 \u2013 so you should definitely scale your pictures to suit these constraints if obligatory. Additionally, for those who\u2019d prefer to run the Python code featured on this article, guarantee you could have Python 3.9 or later put in in addition to the Python packages boto3 and pillow.<\/p>\n<p>To use the hoodie to my photograph, I exploit the Amazon Bedrock Runtime invoke API. Yow will discover full particulars on the request and response constructions for this API within the <a href=\"https:\/\/docs.aws.amazon.com\/nova\/latest\/userguide\/image-generation.html\" target=\"_blank\" rel=\"noopener\">Amazon Nova Consumer Information<\/a>. The code is simple, requiring only some inference parameters. I exploit the brand new <code>taskType<\/code> of <code>\"VIRTUAL_TRY_ON\"<\/code>. I then specify the specified settings, together with each the supply picture and reference picture, utilizing the <code>virtualTryOnParams<\/code> object to set a number of required parameters. Be aware that each pictures should be transformed to Base64 strings.<\/p>\n<pre><code class=\"lang-python\">import base64\n\n\ndef load_image_as_base64(image_path): \n   \"\"\"Helper operate for getting ready picture information.\"\"\"\n   with open(image_path, \"rb\") as image_file:\n      return base64.b64encode(image_file.learn()).decode(\"utf-8\")\n\n\ninference_params = {\n   \"taskType\": \"VIRTUAL_TRY_ON\",\n   \"virtualTryOnParams\": {\n      \"sourceImage\": load_image_as_base64(\"particular person.png\"),\n      \"referenceImage\": load_image_as_base64(\"aws-hoodie.jpg\"),\n      \"maskType\": \"GARMENT\",\n      \"garmentBasedMask\": {\"garmentClass\": \"UPPER_BODY\"}\n   }\n}<\/code><\/pre>\n<p>Nova Canvas makes use of masking to control pictures. This\u00a0is a way that enables AI picture technology to deal with particular areas or areas of a picture whereas preserving others, just like utilizing painter\u2019s tape to guard areas you don\u2019t wish to paint.<\/p>\n<p>You should use three completely different masking modes, which you&#8217;ll be able to select by setting <code>maskType<\/code> to the right worth. On this case, I\u2019m utilizing <code>\"GARMENT\"<\/code>, which requires me to specify which a part of the physique I wish to be masked. I\u2019m utilizing <code>\"UPPER_BODY\"<\/code> , however you should utilize others similar to <code>\"LOWER_BODY\"<\/code>, <code>\"FULL_BODY\"<\/code>, or <code>\"FOOTWEAR\"<\/code> if you wish to particularly goal the ft. <a href=\"https:\/\/docs.aws.amazon.com\/nova\/latest\/userguide\/image-generation.html\" target=\"_blank\" rel=\"noopener\">Seek advice from the documentation<\/a>\u00a0for a full record of choices.<\/p>\n<p>I then name the invoke API, passing in these inference arguments and saving the generated picture to disk.<\/p>\n<pre><code class=\"lang-python\"># Be aware: The inference_params variable from above is referenced beneath.\n\nimport base64\nimport io\nimport json\n\nimport boto3\nfrom PIL import Picture\n\n# Create the Bedrock Runtime consumer.\nbedrock = boto3.consumer(service_name=\"bedrock-runtime\", region_name=\"us-east-1\")\n\n# Put together the invocation payload.\nbody_json = json.dumps(inference_params, indent=2)\n\n# Invoke Nova Canvas.\nresponse = bedrock.invoke_model(\n   physique=body_json,\n   modelId=\"amazon.nova-canvas-v1:0\",\n   settle for=\"utility\/json\",\n   contentType=\"utility\/json\"\n)\n\n# Extract the photographs from the response.\nresponse_body_json = json.hundreds(response.get(\"physique\").learn())\npictures = response_body_json.get(\"pictures\", [])\n\n# Verify for errors.\nif response_body_json.get(\"error\"):\n   print(response_body_json.get(\"error\"))\n\n# Decode every picture from Base64 and save as a PNG file.\nfor index, image_base64 in enumerate(pictures):\n   image_bytes = base64.b64decode(image_base64)\n   image_buffer = io.BytesIO(image_bytes)\n   picture = Picture.open(image_buffer)\n   picture.save(f\"image_{index}.png\")\n<\/code><\/pre>\n<p>I get a really thrilling consequence!<\/p>\n<p><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/26\/nova-canvas-try-on.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-97534\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/26\/nova-canvas-try-on.png\" alt=\"Matheus wearing AWS-branded hoodie\" width=\"810\" height=\"1080\"\/><\/a><\/p>\n<p>And similar to that, I\u2019m the proud wearer of an AWS-branded hoodie!<\/p>\n<p>Along with the <code>\"GARMENT\"<\/code> masks sort, it&#8217;s also possible to use the <code>\"PROMPT\"<\/code> or <code>\"IMAGE\"<\/code> masks. With <code>\"PROMPT\"<\/code>, you additionally present the supply and reference pictures, nevertheless, you present a pure language immediate to specify which a part of the supply picture you\u2019d like to get replaced. That is just like how the <code>\"INPAINTING\"<\/code> and <code>\"OUTPAINTING\"<\/code> duties work in Nova Canvas. If you wish to use your personal picture masks, you then select the <code>\"IMAGE\"<\/code> masks sort and supply a black-and-white picture for use as masks, the place black signifies the pixels that you simply wish to get replaced on the supply picture, and white those you wish to protect.<\/p>\n<p>This functionality is particularly helpful for retailers. They will use it to assist their prospects make higher buying choices by seeing how merchandise look earlier than shopping for.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Utilizing type choices<\/strong><\/span><br \/>I\u2019ve at all times puzzled what I might appear to be as an anime superhero. Beforehand, I might use Nova Canvas to control a picture of myself, however I must depend on my good immediate engineering abilities to get it proper. Now, Nova Canvas comes with pre-trained types you can apply to your pictures to get high-quality outcomes that observe the inventive type of your selection. There are eight out there types together with 3D animated household movie, design sketch, flat vector illustration, graphic novel, maximalism, midcentury retro, photorealism, and tender digital portray.<\/p>\n<p>Making use of them is as easy as passing in an additional parameter to the Nova Canvas API. Let\u2019s attempt an instance.<\/p>\n<p>I wish to generate a picture of an AWS superhero utilizing the 3D animated household movie type. To do that, I specify a <code>taskType<\/code> of <code>\"TEXT_IMAGE\"<\/code>\u00a0and a <code>textToImageParams<\/code> object containing two parameters: <code>textual content<\/code> and <code>type<\/code>. The <code>textual content<\/code> parameter accommodates the immediate describing the picture I wish to create which on this case is \u201ca superhero in a yellow outfit with a giant AWS brand and a cape.\u201d The <code>type<\/code> parameter specifies one of many predefined type values. I\u2019m utilizing <code>\"3D_ANIMATED_FAMILY_FILM\"<\/code> right here, however you&#8217;ll find the total record within the <a href=\"https:\/\/docs.aws.amazon.com\/nova\/latest\/userguide\/image-generation.html\" target=\"_blank\" rel=\"noopener\">Nova Canvas Consumer Information<\/a>.<\/p>\n<pre><code class=\"lang-python\">inference_params = {\n   \"taskType\": \"TEXT_IMAGE\",\n   \"textToImageParams\": {\n      \"textual content\": \"a superhero in a yellow outfit with a giant AWS brand and a cape.\",\n      \"type\": \"3D_ANIMATED_FAMILY_FILM\",\n   },\n   \"imageGenerationConfig\": {\n      \"width\": 1280,\n      \"peak\": 720,\n      \"seed\": 321\n   }\n}<\/code><\/pre>\n<p>Then, I name the invoke API simply as I did within the earlier instance. (The code has been omitted right here for brevity.) And the consequence? Properly, I\u2019ll allow you to decide for your self, however I&#8217;ve to say I\u2019m fairly happy with the AWS superhero sporting my favourite shade following the 3D animated household movie type precisely as I envisioned.<\/p>\n<p><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/11\/superhero_AWS.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-97130\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/11\/superhero_AWS.png\" alt=\"\" width=\"1280\" height=\"720\"><\/a><\/p>\n<p>What\u2019s actually cool is that I can maintain my code and immediate precisely the identical and solely change the worth of the type attribute to generate a picture in a totally completely different type. Let\u2019s do this out. I set <code>type<\/code> to <code>PHOTOREALISM<\/code>.<\/p>\n<pre><code class=\"lang-python\">inference_params = { \n   \"taskType\": \"TEXT_IMAGE\", \n   \"textToImageParams\": { \n      \"textual content\": \"a superhero in a yellow outfit with a giant AWS brand and a cape.\",\n      \"type\": \"PHOTOREALISM\",\n   },\n   \"imageGenerationConfig\": {\n      \"width\": 1280,\n      \"peak\": 720,\n      \"seed\": 7\n   }\n}<\/code><\/pre>\n<p>And the result&#8217;s spectacular! A photorealistic superhero precisely as I described, which is a far departure from the earlier generated cartoon and all it took was altering one line of code.<\/p>\n<p><a href=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/11\/superhero_AWS_photorealistic.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-97132\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2025\/06\/11\/superhero_AWS_photorealistic.png\" alt=\"\" width=\"1280\" height=\"720\"><\/a><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Issues to know<\/strong><\/span><br \/>Availability \u2013 Digital try-on and elegance choices can be found in Amazon Nova Canvas within the US East (N. Virginia), Asia Pacific (Tokyo), and Europe (Eire). Present customers of Amazon Nova Canvas can instantly use these capabilities with out migrating to a brand new mannequin.<\/p>\n<p>Pricing \u2013 See the <a href=\"https:\/\/aws.amazon.com\/bedrock\/pricing?trk=ac97e39c-d115-4d4a-b3fe-c695e0c9a7ee&amp;sc_channel=el\" target=\"_blank\" rel=\"noopener\">Amazon Bedrock pricing web page<\/a> for particulars on prices.<\/p>\n<p>For a preview of digital try-on of clothes, you possibly can go to <a href=\"https:\/\/nova.amazon.com\/\" target=\"_blank\" rel=\"noopener\">nova.amazon.com<\/a> the place you possibly can add a picture of an individual and a garment to visualise completely different clothes mixtures.<\/p>\n<p>In case you are able to get began, please take a look at the <a href=\"https:\/\/docs.aws.amazon.com\/nova\/latest\/userguide\/image-generation.html\" target=\"_blank\" rel=\"noopener\">Nova Canvas Consumer Information<\/a> or go to the <a href=\"http:\/\/console.aws.amazon.com\/bedrock\" target=\"_blank\" rel=\"noopener\">AWS Console<\/a>.<\/p>\n<p>       <a href=\"https:\/\/www.linkedin.com\/in\/codingmatheus\/\" target=\"_blank\" rel=\"noopener\">Matheus Guimaraes | @codingmatheus<\/a><br \/>\n       <!-- '\"` -->\n      <\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Have you ever ever wished you could possibly shortly visualize how a brand new outfit would possibly look on you earlier than making a purchase order? Or how a bit of furnishings would look in your lounge? Right now, we\u2019re excited to introduce a brand new digital try-on functionality in Amazon Nova Canvas that makes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10282,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-10280","post","type-post","status-publish","format-standard","has-post-thumbnail","category-cloud-computing"],"_links":{"self":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts\/10280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10280"}],"version-history":[{"count":1,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts\/10280\/revisions"}],"predecessor-version":[{"id":10281,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts\/10280\/revisions\/10281"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/media\/10282"}],"wp:attachment":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}