forked from tensorflow/models
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tensorflow#1 from tensorflow/master
update to tensorflow/model master
- Loading branch information
Showing
683 changed files
with
634,934 additions
and
2,210 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Please go to Stack Overflow for help and support: | ||
|
||
http://stackoverflow.com/questions/tagged/tensorflow | ||
|
||
Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy: | ||
|
||
1. It must be a bug or a feature request. | ||
2. The form below must be filled out. | ||
|
||
**Here's why we have that policy**: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow. | ||
|
||
------------------------ | ||
|
||
### System information | ||
- **What is the top-level directory of the model you are using**: | ||
- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: | ||
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: | ||
- **TensorFlow installed from (source or binary)**: | ||
- **TensorFlow version (use command below)**: | ||
- **Bazel version (if compiling from source)**: | ||
- **CUDA/cuDNN version**: | ||
- **GPU model and memory**: | ||
- **Exact command to reproduce**: | ||
|
||
You can collect some of this information using our environment capture script: | ||
|
||
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh | ||
|
||
You can obtain the TensorFlow version with | ||
|
||
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" | ||
|
||
### Describe the problem | ||
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request. | ||
|
||
### Source code / logs | ||
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Learning to Protect Communications with Adversarial Neural Cryptography | ||
|
||
This is a slightly-updated model used for the paper | ||
["Learning to Protect Communications with Adversarial Neural | ||
Cryptography"](https://arxiv.org/abs/1610.06918). | ||
|
||
> We ask whether neural networks can learn to use secret keys to protect | ||
> information from other neural networks. Specifically, we focus on ensuring | ||
> confidentiality properties in a multiagent system, and we specify those | ||
> properties in terms of an adversary. Thus, a system may consist of neural | ||
> networks named Alice and Bob, and we aim to limit what a third neural | ||
> network named Eve learns from eavesdropping on the communication between | ||
> Alice and Bob. We do not prescribe specific cryptographic algorithms to | ||
> these neural networks; instead, we train end-to-end, adversarially. | ||
> We demonstrate that the neural networks can learn how to perform forms of | ||
> encryption and decryption, and also how to apply these operations | ||
> selectively in order to meet confidentiality goals. | ||
This code allows you to train an encoder/decoder/adversary triplet | ||
and evaluate their effectiveness on randomly generated input and key | ||
pairs. | ||
|
||
## Prerequisites | ||
|
||
The only software requirements for running the encoder and decoder is having | ||
Tensorflow installed. | ||
|
||
Requires Tensorflow r0.12 or later. | ||
|
||
## Training and evaluating | ||
|
||
After installing TensorFlow and ensuring that your paths are configured | ||
appropriately: | ||
|
||
``` | ||
python train_eval.py | ||
``` | ||
|
||
This will begin training a fresh model. If and when the model becomes | ||
sufficiently well-trained, it will reset the Eve model multiple times | ||
and retrain it from scratch, outputting the accuracy thus obtained | ||
in each run. | ||
|
||
## Model differences from the paper | ||
|
||
The model has been simplified slightly from the one described in | ||
the paper - the convolutional layer width was reduced by a factor | ||
of two. In the version in the paper, there was a nonlinear unit | ||
after the fully-connected layer; that nonlinear has been removed | ||
here. These changes improve the robustness of training. The | ||
initializer for the convolution layers has switched to the | ||
tf.contrib.layers default of xavier_initializer instead of | ||
a simpler truncated_normal. | ||
|
||
## Contact information | ||
|
||
This model repository is maintained by David G. Andersen | ||
([dave-andersen](https://github.com/dave-andersen)). |
Oops, something went wrong.