AWS-Nova-Canvas / README.md
hatmanstack
Spelling
d8eea38

A newer version of the Gradio SDK is available: 5.12.0

Upgrade
metadata
title: AWS Nova Canvas
emoji: 🚀
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 5.6.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Generate image variations

AWS Nova Canvas Image Generation

float-app icon

From Thought - To Concept
Nova Canvas »

A Gradio application for advanced image generation using AWS Nova Canvas, offering comprehensive image manipulation capabilities.

Capabilities

  • Text to Image: Generate images from text prompts
  • Inpainting: Modify specific image areas
  • Outpainting: Extend image boundaries
  • Image Variation: Create image variations
  • Image Conditioning: Generate images based on input image and text
  • Color Guided Content: Create images using reference color palettes
  • Background Removal: Remove image backgrounds

Prerequisites

  • AWS credentials configured (AmazonBedrockFullAccess)
  • HF Token for Input Image Check
  • Boto3 Python library
  • Gradio 5.6.0

Install

git clone https://github.com/hatmanstack/canvas-demo.git
cd canvas-demo
python -r requirements.txt
  • Create a .env in the root directory with AWS and HuggingFace credentials
    • grant access in us-east-1 to Nova Family of Models
    • grant full Bedrock Access
    • grant access to s3 bucket in region of your choice

.env

AWS_ID=<aws>
AWS_SECRET=<aws>
NOVA_IMAGE_BUCKET=<bucket name>
BUCKET_REGION=<bucket region>
HF_TOKEN=<hugging face token with either read or write capabilities for content moderation>
RATE_LIMIT=<Around .04 per image for Stanard quality and .08 for Premium, each rate_limit unit counts as 1 Standard, Refreshes every 20 minutes>

Technical Details

  • Model: Amazon Nova Canvas (amazon.nova-canvas-v1:0)
  • Model: Amazon Nova Lite (us.amazon.nova-lite-v1:0)
  • Image Generation Parameters:
    • Default resolution: 1024x1024
    • Quality: Standard
    • CFG Scale: 8.0
    • Configurable seed