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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.