Skip to content

ERROR: invalid literal for int() with base 2: 'TrueFalseTrueTrueTrueTrueTrueTrue' #70

@nekomeowww

Description

@nekomeowww
  • SteganoGAN version or git commit: 0.1.2
  • Python version (output of python --version): 3.7
  • Pip version (output of pip --version): 21.2.4
  • PyTorch version (output of python -c "import torch; print(torch.__version__)"): 1.10.2+cu102
  • Operating System: Docker image python:3.7-bulleye on Docker Desktop of macOS
  • Pip freeze:
imageio==2.16.1
numpy==1.21.5
Pillow==9.0.1
reedsolo==1.5.4
scipy==1.7.3
steganogan==0.1.2
torch==1.10.2
torchvision==0.11.3
tqdm==4.63.0
typing_extensions==4.1.1

Description

I tried to encode and decode the image secret message, however, it failed to decode the messages, and returned:

ERROR: invalid literal for int() with base 2: 'TrueFalseTrueTrueTrueTrueTrueTrue'

What I Did

Firstly I ran:

steganogan encode --cpu --verbose --output enc.jpeg orig.jpg "123123"

The result is good, the shell responded:

Using CPU device
Encoding completed.

And then I ran:

steganogan decode --cpu --verbose enc.jpeg

The result is failed, the shell responded:

Using CPU device
ERROR: invalid literal for int() with base 2: 'TrueFalseTrueTrueTrueTrueTrueTrue'

And additional, there are some warning messages during these two runs:

/usr/local/lib/python3.7/site-packages/torch/serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
/usr/local/lib/python3.7/site-packages/torch/serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
/usr/local/lib/python3.7/site-packages/torch/serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.activation.LeakyReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
/usr/local/lib/python3.7/site-packages/torch/serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
/usr/local/lib/python3.7/site-packages/torch/serialization.py:671: SourceChangeWarning: source code of class 'steganogan.decoders.DenseDecoder' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
/usr/local/lib/python3.7/site-packages/torch/serialization.py:671: SourceChangeWarning: source code of class 'steganogan.critics.BasicCritic' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions