InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

Add node to read watermarks

Open lstein opened this issue 1 year ago • 2 comments

Summary

This adds an invocation to read the invisible watermark created by the AddWatermark invocation.

Related Issues / Discussions

QA Instructions

Screenshot from 2024-07-17 15-12-13

  1. Create a simple workflow which pipes an image from AddWatermark to RetrieveWatermark, as per example above
  2. [Optional] Change the default watermark text from "InvokeAI" to something of your choice. If you do this, be sure to adjust the watermark string length in RetrieveWatermark appropriately.
  3. Run the invocation. The output from RetrieveWatermark should match the AddWatermark string.

Merge Plan

Merge when approved.

Checklist

  • [X] The PR has a short but descriptive title, suitable for a changelog
  • [X] Tests added / updated (if applicable)
  • [X] Documentation added / updated (if applicable)

lstein avatar Jul 17 '24 19:07 lstein

Is the current watermarking mode what we want to commit to long term? Seems like it makes a notable impact on images; although, I’m not sure there’s a better one that’s open source. I know Meta had one, but they put a dumb license on it.

hipsterusername avatar Jul 18 '24 11:07 hipsterusername

Is the current watermarking mode what we want to commit to long term? Seems like it makes a notable impact on images; although, I’m not sure there’s a better one that’s open source. I know Meta had one, but they put a dumb license on it.

Here's another library which seems to be based on the same algorithms as invisible-watermark: https://github.com/guofei9987/blind_watermark . It lets you embed either a watermark text or an image in the file. I can play around with it and see if the image effects are less noticeable.

lstein avatar Jul 20 '24 20:07 lstein