Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in the implementation when non_analyze=False #1

Open
FabienRoger opened this issue Sep 14, 2023 · 6 comments
Open

Bug in the implementation when non_analyze=False #1

FabienRoger opened this issue Sep 14, 2023 · 6 comments

Comments

@FabienRoger
Copy link

FabienRoger commented Sep 14, 2023

In watermarking/watermark_processors/message_model_processor.py
decoded_message, decoded_prob = decoded_probs.max(0) should be decoded_prob, decoded_message = decoded_probs.max(0)

@leanwang326
Copy link
Collaborator

Sorry for this. We have fixed this as you suggest.

@zzq73
Copy link

zzq73 commented Sep 25, 2023

Thanks for your work, I want to know what is the form of watermark message input into the model.

@leanwang326
Copy link
Collaborator

watermark_processor = WmProcessorMessageModel(message_model=lm_message_model,
tokenizer=tokenizer,
encode_ratio=args.encode_ratio,
max_confidence_lbd=args.max_confidence_lbd,
strategy=args.message_model_strategy,
message=args.message,
top_k=args.top_k,
)
here, in this sentence: message=args.message (w.l.o.g, we assume message is an integer. other kind of information can convert to 0-1 bits and then to an integer)

@zzq73
Copy link

zzq73 commented Sep 25, 2023

谢谢您的解答,但是抱歉,我没太懂0-1比特的含义,是说嵌入的每一个水印message最多包含1比特的信息量吗?比如可以嵌入是否是由模型生成的文本,这种包含是否两个选项的水印,也可以嵌入一个确定的没有选项的信息,比如嵌入时间等,是这样理解吗?请问如果信息量超过1比特,可以怎样处理呢

@leanwang326
Copy link
Collaborator

for example, we can encode an integer between 0-1023, then it corresponds to an information of 10 bit

@zzq73
Copy link

zzq73 commented Sep 25, 2023

Thank you for your answer

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

No branches or pull requests

3 participants