Skip to content

Commit 8da4623

Browse files
committed
update README
1 parent ba48024 commit 8da4623

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
# GAN with Gradient Reversal Layer
2-
Implemented with Chainer
2+
Implemented with Chainer and PyTorch.
33

44
Ganin, Yaroslav, et al. "Domain-adversarial training of neural networks." The Journal of Machine Learning Research 17.1 (2016): 2096-2030.
55

6-
## Requirements
7-
Chainer, OpenCV
6+
## Requirements (Chainer)
7+
Chainer, OpenCV, NumPy
88

99
```bash
10-
$ pip install chainer opencv-python
10+
$ pip install chainer opencv-python numpy
1111
```
1212

13+
## Requirements (PyTorch)
14+
PyTorch, Ignite, OpenCV, NumPy
15+
16+
PyTorch: see the [official document](https://pytorch.org/get-started/locally/).
17+
18+
```bash
19+
$ pip install pytorch-ignite opencv-python numpy
20+
```
1321

1422
## Training of GAN
1523
```bash
16-
$ python gan.py [options]
24+
$ python train_gan.py [options]
1725
```
1826

1927
## Image generation from trained generator

chainer/generate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding: utf-8
22

3-
from gan import get_generator
3+
from train_gan import get_generator
44
import cv2
55
from pathlib import Path
66
import pprint

0 commit comments

Comments
 (0)