SteganoGAN
SteganoGAN copied to clipboard
Decoder not working
Description
Decoder displays this error : ValueError: Failed to find message.
What I Did
I have the same error Things I tried:
- Load the pretrained
dense
checkpoint and try to encode-decode a custom image with a basic one-sentence message - The same, but with an image from the
train/
of DIV2K and from theval/
- Trained my own
SteganoGAN
on the DIV2K for about 20 epochs, tried to encode-decode an image fromtrain/
All failed with the same error "Failed to find message"
I'm suspecting there's some kind of version mismatch with either zlib
or reedsolo
, because 0 candidates during decoding indicates that either Reed-Solomon decoding or dlib decompression failed
Ok this issue https://github.com/DAI-Lab/SteganoGAN/issues/55 indicates that reedsolo
version is already capped, so maybe the issue is with zlib?
And zlib
is shipped with python directly, so I doubt there's an error there
I'm out of ideas
描述
解码器显示此错误:
ValueError: Failed to find message.
我做了什么
Did you solve the problem? Does your encoder work?
sir i want to ask you something in this project can we encode our secret image in image or we only encode the secreat message in the image?
To update on the issue: The decoding algorithm relies on some assumption that may easily fail. I didn't have this "Failed to find message" issue with a much-much smaller message, but having it fail so often, it contradicts the promises from the paper. Hopefully at some point there will be a better way of doing robust Reed-Solomon encoding/decoding into an image
@jatindarkumar12 to answer your question - this method is supposed to hide an arbitrary bit string inside of a cover image. Every bit is decoded correctly with a probability, so to be confident that we will extract the message, we use Reed-Solomon encoding.
Sadly, right now it works somewhat reliably only with a very small bit message, so I doubt you can fit a whole image inside the cover image
sir we want to implementing the decoding of image in cover image in this project please guide us something
@jatindarkumar12 if you want help, email me on the address from my profile