Skip to content

Commit

Permalink
gangogh: Generate 'generated' directory automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigobdz committed Nov 29, 2019
1 parent 504be83 commit 8d33721
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gangogh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os, sys
from pathlib import Path

sys.path.append(os.getcwd())

Expand Down Expand Up @@ -33,6 +34,8 @@
PREITERATIONS = 2000 # Number of preiteration training cycles to run
lib.print_model_settings(locals().copy())

# Ensure that directory exists where ground truth and plots will be saved to.
Path('generated').mkdir(parents=True, exist_ok=True)

def GeneratorAndDiscriminator():
return kACGANGenerator, kACGANDiscriminator
Expand Down

0 comments on commit 8d33721

Please sign in to comment.