YuxinWenRick/tree-ring-watermark

why use negative no_w_metric and w_metric?

Closed this issue · 1 comments

no_w_metrics.append(-no_w_metric)

w_metrics.append(-w_metric)

Why do you use negative no_w_metric and w_metric instead of the postive ones?

Hi, @liwd190019, thanks for asking. It's a good question. For preds that we pass to metrics.roc_curve is the confidence score of being watermarked. If it's a watermarked image, this score should be larger. We negate it, since our metric is the distance, and we know that the distance is smaller for the watermarked images.

Let me know if you have further questions!