SteganoGAN icon indicating copy to clipboard operation
SteganoGAN copied to clipboard

Decoder not working

Open AkashSCIENTIST opened this issue 1 year ago • 8 comments

Description

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

What I Did

Screenshot 2023-08-14 094632

AkashSCIENTIST avatar Aug 14 '23 04:08 AkashSCIENTIST

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 avatar Sep 06 '23 14:09 Xallt

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?

Xallt avatar Sep 06 '23 14:09 Xallt

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

Xallt avatar Sep 06 '23 15:09 Xallt

描述

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

我做了什么

截图 2023-08-14 094632

Did you solve the problem? Does your encoder work?

xbtzpx avatar Oct 16 '23 12:10 xbtzpx

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?

jatindarkumar12 avatar Nov 30 '23 20:11 jatindarkumar12

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

Xallt avatar Dec 01 '23 09:12 Xallt

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

jatindarkumar12 avatar Dec 02 '23 07:12 jatindarkumar12

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

Xallt avatar Dec 02 '23 08:12 Xallt