Skip to content

Conversation

bhavinjpatel
Copy link

Description of changes:

This PR adds support for Content Provenance (C2PA) features to the Amazon Nova Canvas Workshop.

  1. New Content Provenance Notebook
    Added 08-content-provenance.ipynb which demonstrates:
  • Automatic C2PA metadata embedding in generated images
  • Metadata verification and validation
  • Tracking provenance through image editing operations
  • Visualization of manifest changes
  • Integration with AWS's digital signatures

2. Enhanced Utils Module

Added new functions to utils.py:

  • save_binary_image: Preserves C2PA metadata when saving images
  • extract_c2pa_metadata: Extracts and parses C2PA manifests
  • display_image_with_metadata: Visualizes images with their metadata
  • verify_c2pa_metadata: Performs verification
  • track_edit_provenance: Tracks and visualizes changes across edits
  • Enhanced plotting functions to support metadata visualization

3. Prerequisites Update

Modified 00-NovaCanvas-prerequisites.ipynb:

  • Added c2pa-python library installation
  • Updated dependency list
  • Maintained backward compatibility with existing requirements

4. Documentation Enhancement

Updated 01-text-to-image.ipynb:

  • Added Content Provenance to features list

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

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant