-
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.
- Loading branch information
Showing
16 changed files
with
57 additions
and
229 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...als_basic/1_first_run_with_aerial2maps.md → docs/tutorials_basic/1_first_run.md
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
7 changes: 4 additions & 3 deletions
7
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"project_name": "maps_project", | ||
"number_of_iterations": 117700, | ||
"project_name": "facades_project", | ||
"number_of_iterations": 100000, | ||
"batch_size": 1, | ||
"logging_frequency": 500, | ||
"checkpointing_frequency": 2000, | ||
"generator_model": ["Resnet2D", "Unet2D"], | ||
"cycle_consistency_ssim_percentage": 0.84, | ||
"path": "." | ||
"path": ".", | ||
"enable_cuda": true | ||
} |
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
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
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.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,28 @@ | ||
from pathlib import Path | ||
|
||
from ganslate.utils.cli.interface import setup_first_run | ||
from ganslate.engines.utils import init_engine | ||
|
||
# test_with_pytest.py | ||
def test_first_run(): | ||
"""[summary] | ||
Generate setup for first run and check if the directory and files are | ||
created. | ||
""" | ||
setup_first_run(".", True, extra_context={"number_of_iterations": 2, | ||
"project_name": "first_run_test", | ||
"logging_frequency": 1, | ||
"enable_cuda": False | ||
}) | ||
|
||
generated_project_dir = Path("first_run_test") | ||
assert generated_project_dir.is_dir() | ||
assert (generated_project_dir / "facades" / "train" / "A" ).is_dir() | ||
assert (generated_project_dir / "facades" / "train" / "B" ).is_dir() | ||
|
||
|
||
def test_training(): | ||
"""[summary] | ||
Run 10 iterations of dummy training and see if it works. | ||
""" | ||
assert init_engine('train', ["config=first_run_test/default.yaml"]).run() |
This file was deleted.
Oops, something went wrong.