How to do it…

  1. Clone the repository using the following command:
git clone https://github.com/emmanueltsukerman/PyTorch-Deep-Image-Steganography.git
  1. Prepare a pretrained model:
cat ./checkPoint/netH.tar.gz* | tar -xzv -C ./checkPoint/
  1. Prepare a secret image and a cover image in the example_pics folder:

As you can see, we are using the following image as the cover image:

We are using the following image as the secret image:

  1. Execute the pretrained model to produce a container image and a reconstructed secret:
CUDA_VISIBLE_DEVICES=0 python ...

Get Machine Learning for Cybersecurity Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.