AWS Nova Canvas Model Outpainting Error

0

I am getting below error in Nova Model (amazon.nova-canvas-v1:0) but it is working fine for Titan Model (amazon.titan-image-generator-v1).

Invalid Input: The input does not adhere to the expected standards. Please refer to the model user guide and adjust the input before trying again.

Request Body - http://notepad.link/share/74a6V6wxwNJp8Ae2yVSf

Response - http://notepad.link/share/K7iOmPa6blTth4s080r0

Image -

Enter image description here

maskImage -

Enter image description here

asked 2 months ago120 views
1 Answer
0

Based on the information provided, it appears you're encountering an input validation error with the AWS Nova Canvas model. This error suggests that one or more of your input parameters do not meet the expected standards for the Nova Canvas model. Here are a few things to check:

  1. Image and Mask Format: Ensure that both your input image and mask image are in a supported format and resolution. The dimensions of both images should be multiples of 16 pixels.

  2. Mask Image: For outpainting, the mask should be pure black and white. White areas indicate where new content should be generated, while black areas represent the parts of the original image to keep intact. Make sure your mask follows this convention.

  3. Text Prompt: While not explicitly mentioned in your error, ensure that your text prompt is descriptive of the entire desired scene, not just the areas to be generated.

  4. Outpainting Mode: Check that you're using a valid outpainting mode. The supported modes are "DEFAULT" and "PRECISE".

  5. Image Size: Verify that your input image doesn't exceed the maximum allowed size for the Nova Canvas model.

  6. Request Body: Double-check your JSON structure in the request body. Ensure all required fields are present and correctly formatted.

If you've verified all these points and are still encountering the error, you may want to start with a basic working example from the AWS documentation and gradually modify it to match your specific use case. This can help isolate where the issue might be occurring.

Remember, different models may have slightly different input requirements, which could explain why it works with the Titan model but not with Nova Canvas. If the issue persists after addressing these points, you may need to contact AWS support for further assistance.
Sources
AWS Nova Canvas | AWS re:Post
Code examples - Amazon Nova
Error handling - Amazon Nova

profile picture
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions