Skip to content

Commit 2522c72

Browse files
committed
modify
1 parent 26276e3 commit 2522c72

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@ This is an unofficial PyTorch implementation of [sngan_projection](https://githu
1010
- [torchviz](https://github.com/szagoruyko/pytorchviz) pip install torchviz and [graphviz](http://www.graphviz.org/) sudo apt-get install graphviz
1111

1212
# Usage:
13+
There are two to run the training script:
14+
- Run the script directly (We recommend this way): `python3 main.py` or `python main.py`.
15+
In this way, the training parameters can be modified by modifying the `parameter.py` parameter defaults.
16+
17+
# Parameters
18+
| Parameters | Function |
19+
| :---- | :---- |
20+
| --version | Experiment name |
21+
| --train | Set the model stage, Ture---training stage; False---testing stage |
22+
| --experiment_description | Descriptive text for this experiment |
23+
24+
| --total_step | Totally training step |
25+
| --batch_size | Batch size |
26+
| --g_lr | Learning rate of generator |
27+
| --d_lr | Learning rate of discriminator |
28+
29+
| --parallel | Enable the parallel training |
30+
| --dataset | Set the dataset name,lsun,celeb,cifar10 |
31+
| --cuda | Set GPU device number |
32+
| --image_path | The root dir to training dataset |
33+
| --FID_mean_cov | The root dir to dataset moments npz file |
34+
35+
1336

1437
# Acknowledgement
1538
- [sngan_projection](https://github.com/pfnet-research/sngan_projection)

parameter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def getParameters():
5555
parser.add_argument('--parallel', type=str2bool, default=False)
5656
parser.add_argument('--GPUs', type=str, default='0', help='gpuids eg: 0,1,2,3 --parallel True ')
5757
parser.add_argument('--dataset', type=str, default='cifar10', choices=['lsun', 'celeba','cifar10'])
58-
parser.add_argument('--use_tensorboard', type=str2bool, default=True)
5958

6059
# Path
6160
parser.add_argument('--image_path', type=str, default='D:\\Workspace\\SAGAN_WS\\data')

0 commit comments

Comments
 (0)