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

Decoder not working #91

Open
AkashSCIENTIST opened this issue Aug 14, 2023 · 8 comments
Open

Decoder not working #91

AkashSCIENTIST opened this issue Aug 14, 2023 · 8 comments

Comments

@AkashSCIENTIST
Copy link

AkashSCIENTIST commented Aug 14, 2023

Description

Decoder displays this error : ValueError: Failed to find message.

What I Did

Screenshot 2023-08-14 094632

@Xallt
Copy link

Xallt commented Sep 6, 2023

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 the val/
  • Trained my own SteganoGAN on the DIV2K for about 20 epochs, tried to encode-decode an image from train/

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

@Xallt
Copy link

Xallt commented Sep 6, 2023

Ok this issue #55 indicates that reedsolo version is already capped, so maybe the issue is with zlib?

@Xallt
Copy link

Xallt commented Sep 6, 2023

And zlib is shipped with python directly, so I doubt there's an error there
I'm out of ideas

@xbtzpx
Copy link

xbtzpx commented Oct 16, 2023

描述

解码器显示此错误:ValueError: Failed to find message.

我做了什么

截图 2023-08-14 094632

Did you solve the problem? Does your encoder work?

@jatindarkumar12
Copy link

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?

@Xallt
Copy link

Xallt commented Dec 1, 2023

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

@jatindarkumar12
Copy link

sir we want to implementing the decoding of image in cover image in this project
please guide us something

@Xallt
Copy link

Xallt commented Dec 2, 2023

@jatindarkumar12 if you want help, email me on the address from my profile

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

4 participants