All Projects → alexandremuzio → deep-steg

alexandremuzio / deep-steg

Licence: MIT license
Global NIPS Paper Implementation Challenge of "Hiding Images in Plain Sight: Deep Steganography"

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to deep-steg

handson-ml
도서 "핸즈온 머신러닝"의 예제와 연습문제를 담은 주피터 노트북입니다.
Stars: ✭ 285 (+562.79%)
Mutual labels:  autoencoder
frontend-park
哈喽大家好~我是荣顶!这是一个有趣的前端趣味知识公园~该项目是我平时捣鼓前端相关技术的一些案例集合。
Stars: ✭ 66 (+53.49%)
Mutual labels:  steganography
autoencoder for physical layer
This is my attempt to reproduce and extend the results in the paper "An Introduction to Deep Learning for the Physical Layer" by Tim O'Shea and Jakob Hoydis
Stars: ✭ 43 (+0%)
Mutual labels:  autoencoder
AperiSolve
Steganalysis web platform
Stars: ✭ 268 (+523.26%)
Mutual labels:  steganography
PyTorch-Deep-Image-Steganography
A PyTorch implementation of image steganography utilizing deep convolutional neural networks
Stars: ✭ 71 (+65.12%)
Mutual labels:  steganography
steganography
A simple steganography library written in rust
Stars: ✭ 75 (+74.42%)
Mutual labels:  steganography
imagenet-autoencoder
Autoencoder trained on ImageNet Using Torch 7
Stars: ✭ 18 (-58.14%)
Mutual labels:  autoencoder
autoencoders tensorflow
Automatic feature engineering using deep learning and Bayesian inference using TensorFlow.
Stars: ✭ 66 (+53.49%)
Mutual labels:  autoencoder
catseye
Neural network library written in C and Javascript
Stars: ✭ 29 (-32.56%)
Mutual labels:  autoencoder
gif-msg
Hide 127 bytes in a gif without touching any pixels or colors
Stars: ✭ 26 (-39.53%)
Mutual labels:  steganography
mae-scalable-vision-learners
A TensorFlow 2.x implementation of Masked Autoencoders Are Scalable Vision Learners
Stars: ✭ 54 (+25.58%)
Mutual labels:  autoencoder
pytorch-deep-sets
PyTorch re-implementation of parts of "Deep Sets" (NIPS 2017)
Stars: ✭ 60 (+39.53%)
Mutual labels:  nips-2017
VisualML
Interactive Visual Machine Learning Demos.
Stars: ✭ 104 (+141.86%)
Mutual labels:  autoencoder
seq3
Source code for the NAACL 2019 paper "SEQ^3: Differentiable Sequence-to-Sequence-to-Sequence Autoencoder for Unsupervised Abstractive Sentence Compression"
Stars: ✭ 121 (+181.4%)
Mutual labels:  autoencoder
colornet-template
Colorizing B&W Photos with Neural Networks
Stars: ✭ 31 (-27.91%)
Mutual labels:  autoencoder
Hidden-Eye
Hide data into Picture
Stars: ✭ 39 (-9.3%)
Mutual labels:  steganography
Image deionising auto encoder
Noise removal from images using Convolutional autoencoder
Stars: ✭ 34 (-20.93%)
Mutual labels:  autoencoder
fincher
A steganography tool for text
Stars: ✭ 80 (+86.05%)
Mutual labels:  steganography
NIPS-Global-Paper-Implementation-Challenge
Selective Classification For Deep Neural Networks.
Stars: ✭ 11 (-74.42%)
Mutual labels:  nips-2017
Image-Stegano
Analysis and Implementation of Image Steganography methods using Java
Stars: ✭ 19 (-55.81%)
Mutual labels:  steganography

Deep Steganography

Instalation

The required dependencies are:

  • Tensorflow
  • Keras
  • tqdm

Introduction

This is an open-source implementation of the paper Hiding Images in Plain Sight: Deep Steganography, by Shumeet Baluja (Google), at NIPS 2017. The paper is available here.

This code was initially produced with the goal of reproducing to a reasonable degree the results achieved and described in the paper, for the Global NIPS Paper Implementation Challenge.

Abstract: Steganography is the practice of concealing a secret message within another, ordinary, message. Commonly, steganography is used to unobtrusively hide a small message within the noisy regions of a larger image. In this study, we attempt to place a full size color image within another image of the same size. Deep neural networks are simultaneously trained to create the hiding and revealing processes and are designed to specifically work as a pair. The system is trained on images drawn randomly from the ImageNet database, and works well on natural images from a wide variety of sources. Beyond demonstrating the successful application of deep learning to hiding images, we carefully examine how the result is achieved and explore extensions. Unlike many popular steganographic methods that encode the secret message within the least significant bits of the carrier image, our approach compresses and distributes the secret image's representation across all of the available bits.

Dataset

The dataset we used in this implementation is Tiny ImageNet Visual Recognition Challenge. It can be downloaded from here and extracted to data/. The following figure shows some sample images of the dataset.

Architecture and implementation

The model is composed of three parts: The Preparation Network, Hiding Network (Encoder) and the Reveal Network. Its goal is to be able to encode information about the secret image S into the cover image C, generating C' that closely resembles C, while still being able to decode information from C' to generate the decoded secret image S', which should resemble S as closely as possible.

The Preparation Network has the responsibility of preparing data from the secret image to be concatenated with the cover image and fed to the Hiding Network. The Hiding Network than transforms that input into the encoded cover image C'. Finally, the Reveal Network decodes the secret image S' from C'. For stability, we add noise before the Reveal Network, as suggested by the paper. Although the author of the paper didn't originally specify the architecture of the three networks, we discovered aggregated layers showed good results. For both the Hiding and Reveal networks, we use 5 layers of 65 filters (50 3x3 filters, 10 4x4 filters and 5 5x5 filters). For the Preparation Network, we use only 2 layers with the same structure.

Note that the loss function for the Reveal Network is different from the loss function for the Preparation and Hiding Networks. In order to correctly implement the updates for the weights in the networks, we create stacked Keras models, one for the Preparation and Hiding Network (which share the same loss function) and one for the Reveal Network. To make sure weights are updated only once, we freeze the weights on the layers of the Reveal Network before adding it to the full model.

Although the author of the paper didn't explicitly described the learning rate schedule or the optimizer properties, we used our own schedule with ADAM optimizer. We train for 1000 epochs with a batch size of 32.

Results

The following figure shows the distribution pixel-wise distribution of errors for the cover and secret images, respectively. Note that the errors are in a 0-255 scale.

Finally, we show some examples of the generated images compared to the real ones. The 5th and 6th columns show the magnified differences between the generated cover and secret images.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].