Views
No views yet
HiddenDecoder(num_blocks, num_bits, channels, redundancy)MsgExtractor(hidden_decoder, in_features, out_features)1from modeling_msg_extractor import MsgExtractor
2import torch
3
4model = MsgExtractor.from_pretrained("ESmike/StableSignatureDecoder")
5model.eval()
6
7img = torch.randn(1, 3, 256, 256) # example input
8bits = model(img)
9print(bits.shape)1@inproceedings{Fernandez2023StableSignature,
2 title={The Stable Signature Rooting Watermarks in Latent Diffusion Models},
3 author={Fernandez, Pierre and Chappelier, Vivien and Nguyen-Hong, Son},
4 year={2023},
5 institution={Meta AI},
6 note={Original implementation at https://github.com/facebookresearch/stable_signature}
7}