-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update installation and first run docs
- Loading branch information
Suraj Pai
committed
Sep 2, 2021
1 parent
3dfeb53
commit 6c7d7dc
Showing
9 changed files
with
103 additions
and
30 deletions.
There are no files selected for viewing
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,3 @@ | ||
recursive-include ganslate *.sh | ||
recursive-include ganslate/utils/cli/cookiecutter_templates * | ||
recursive-exclude ganslate/utils/cli/cookiecutter_templates __pycache__/* |
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
Empty file.
10 changes: 10 additions & 0 deletions
10
ganslate/utils/cli/cookiecutter_templates/your_first_run/cookiecutter.json
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,10 @@ | ||
{ | ||
"project_name": "horse2zebra", | ||
"number_of_iterations": 117700, | ||
"batch_size": 1, | ||
"logging_frequency": 500, | ||
"checkpointing_frequency": 2000, | ||
"generator_model": ["Resnet2D", "Unet2D"], | ||
"cycle_consistency_ssim_percentage": 0.84, | ||
"path": "." | ||
} |
Empty file.
66 changes: 66 additions & 0 deletions
66
...ls/cli/cookiecutter_templates/your_first_run/{{ cookiecutter.project_name }}/default.yaml
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,66 @@ | ||
project_dir: null | ||
|
||
train: | ||
output_dir: "./checkpoints/horse2zebra_default" | ||
cuda: True | ||
n_iters: {{ cookiecutter.number_of_iterations }} | ||
n_iters_decay: {{ cookiecutter.number_of_iterations }} | ||
batch_size: {{ cookiecutter.batch_size }} | ||
mixed_precision: True | ||
|
||
logging: | ||
freq: {{ cookiecutter.logging_frequency }} | ||
wandb: | ||
project: "horse2zebra" | ||
|
||
checkpointing: | ||
freq: {{ cookiecutter.checkpointing_frequency }} | ||
|
||
dataset: | ||
name: "ImageDataset" | ||
root: "{{ cookiecutter.path }}/{{ cookiecutter.project_name }}/datasets/horse2zebra/train/" | ||
num_workers: 16 | ||
image_channels: 3 | ||
preprocess: "resize" | ||
load_size: 256 | ||
flip: True | ||
|
||
gan: | ||
name: "CycleGAN" | ||
|
||
generator: | ||
name: {{ cookiecutter.generator_model }} | ||
n_residual_blocks: 9 | ||
in_out_channels: | ||
AB: [3, 3] | ||
|
||
discriminator: | ||
name: "PatchGAN2D" | ||
n_layers: 3 | ||
in_channels: | ||
B: 3 | ||
|
||
optimizer: | ||
lambda_AB: 10.0 | ||
lambda_BA: 10.0 | ||
lambda_identity: 0 | ||
proportion_ssim: {{ cookiecutter.cycle_consistency_ssim_percentage }} | ||
lr_D: 0.0002 | ||
lr_G: 0.0004 | ||
|
||
metrics: | ||
discriminator_evolution: True | ||
ssim: True | ||
|
||
infer: | ||
checkpointing: | ||
load_iter: 1 | ||
dataset: | ||
name: "ImageDataset" | ||
root: "{{ cookiecutter.path }}/{{ cookiecutter.project_name }}/datasets/horse2zebra/test/" | ||
num_workers: 16 | ||
image_channels: 3 | ||
preprocess: "resize" | ||
load_size: 256 | ||
flip: False | ||
|
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