Showing
1 changed file
with
16 additions
and
14 deletions
| ... | @@ -6,40 +6,42 @@ TensorFlow implementation of [Unsupervised Cross-Domain Image Generation.](https | ... | @@ -6,40 +6,42 @@ TensorFlow implementation of [Unsupervised Cross-Domain Image Generation.](https |
| 6 | * Python 2.7 | 6 | * Python 2.7 |
| 7 | * [TensorFlow 0.12](https://github.com/tensorflow/tensorflow/tree/r0.12) | 7 | * [TensorFlow 0.12](https://github.com/tensorflow/tensorflow/tree/r0.12) |
| 8 | 8 | ||
| 9 | +<br> | ||
| 9 | 10 | ||
| 10 | ## Usage | 11 | ## Usage |
| 11 | 12 | ||
| 12 | -Clone the repository | 13 | +#### Clone the repository |
| 13 | ```bash | 14 | ```bash |
| 14 | -git clone https://github.com/yunjey/dtn-tensorflow.git | 15 | +$ git clone https://github.com/yunjey/dtn-tensorflow.git |
| 15 | -cd dtn-tensorflow | 16 | +$ cd dtn-tensorflow |
| 16 | ``` | 17 | ``` |
| 17 | 18 | ||
| 18 | -Download the dataset | 19 | +#### Download the dataset |
| 19 | ```bash | 20 | ```bash |
| 20 | -chmod +x download.sh | 21 | +$ chmod +x download.sh |
| 21 | -./download.sh | 22 | +$ ./download.sh |
| 22 | ``` | 23 | ``` |
| 23 | 24 | ||
| 24 | -Resize MNIST dataset to 32x32 | 25 | +#### Resize MNIST dataset to 32x32 |
| 25 | ```bash | 26 | ```bash |
| 26 | -python prepro.py | 27 | +$ python prepro.py |
| 27 | ``` | 28 | ``` |
| 28 | 29 | ||
| 29 | -Pretrain the model f | 30 | +#### Pretrain the model f |
| 30 | ```bash | 31 | ```bash |
| 31 | -python main.py --mode='pretrain' | 32 | +$ python main.py --mode='pretrain' |
| 32 | ``` | 33 | ``` |
| 33 | 34 | ||
| 34 | -Train the model G and D | 35 | +#### Train the model G and D |
| 35 | ```bash | 36 | ```bash |
| 36 | -python main.py --mode='train' | 37 | +$ python main.py --mode='train' |
| 37 | ``` | 38 | ``` |
| 38 | 39 | ||
| 39 | -Transfer SVHN to MNIST | 40 | +#### Transfer SVHN to MNIST |
| 40 | ```bash | 41 | ```bash |
| 41 | -python main.py --mode='eval' | 42 | +$ python main.py --mode='eval' |
| 42 | ``` | 43 | ``` |
| 44 | +<br> | ||
| 43 | 45 | ||
| 44 | ## Results | 46 | ## Results |
| 45 |  | 47 |  | ... | ... |
-
Please register or login to post a comment