Shilin-LU / VINE

"Robust Watermarking Using Generative Priors Against Image Editing: From Benchmarking to Advances" (Official Implementation)
Other
164 stars 19 forks source link

Evaluation Metrics #4

Open WWEISONG opened 1 week ago

WWEISONG commented 1 week ago

Hi Shilin,

It is a great work, and thanks for releasing it to the public.

I was confused about the TPR@0.1%FPR, and from your code, it seems there is only bit accuracy. Could you please indicate how you calculate TPR? Does it require the decoded watermark exactly match the secret (say 100% bit accuracy)?

Shilin-LU commented 1 week ago

Hi, thank you for your interest!

from sklearn import metrics

def compute_auroc_tpr_fpr(unwmed, wmed):
    fpr, tpr, thresholds = metrics.roc_curve(unwmed, wmed, pos_label=1)
    auc = metrics.auc(fpr, tpr)
    tpr_at_1_fpr = tpr[np.where(fpr < 0.01)[0][-1]]
    tpr_at_01_fpr= tpr[np.where(fpr < 0.001)[0][-1]]
    return auc, tpr_at_1_fpr, tpr_at_01_fpr
WWEISONG commented 1 week ago

Thank you very much. This makes a lot of sense to me.

WWEISONG commented 1 week ago

By the way, when will the W-Bench be released? Thanks in advance!

Shilin-LU commented 1 week ago

By the way, when will the W-Bench be released? Thanks in advance!

Hi, W-Bench will be released once our work is published. Thanks for your interest!

WWEISONG commented 6 days ago

Hi Shilin, thank you very much.

Can you please help check the link of "VINE-B-Enc" and "VINE-B-Dec", which both navigate to the encoder link without the decoder? Thanks in advance!

Shilin-LU commented 5 days ago

Hi Shilin, thank you very much.

Can you please help check the link of "VINE-B-Enc" and "VINE-B-Dec", which both navigate to the encoder link without the decoder? Thanks in advance!

Thank you for your reminder! I have corrected it!