Skip to content

Commit 00a8b74

Browse files
committed
Minor edits
1 parent 26720a8 commit 00a8b74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

simplifying_rough_sketches/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def main():
3131
out = args.out
3232
create_directory(out)
3333

34-
root = 'Data'
34+
root = args.root
3535
Input = os.path.join(root, 'Input')
3636
Target = os.path.join(root,'Target')
3737
# height = width = 424

simplifying_rough_sketches/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def argument_parser():
6363
parser.add_argument('--height', '-ht', type=int, default=64, help='height of the image to resize to')
6464
parser.add_argument('--width', '-wd', type=int, default=64, help='width of the image to resize to')
6565
parser.add_argument('--samples', type=bool, default=False, help='See sample training images')
66-
parser.add_argument('--num_epochs', type=int, default=1, help='Number of epochs to train on')
66+
parser.add_argument('--num_epochs', type=int, default=75, help='Number of epochs to train on')
6767
parser.add_argument('--train', default=True, type=bool, help='train the model')
6868
parser.add_argument('--root', default='.', type=str, help='Root Directory for Input and Target images.')
69-
parser.add_argument('--n_folds', default=2, type=int, help='Number of folds in k-fold cross validation.')
69+
parser.add_argument('--n_folds', default=7, type=int, help='Number of folds in k-fold cross validation.')
7070
parser.add_argument('--save_model', default=True, type=bool, help='Save model after training.')
7171
parser.add_argument('--load_model', default=None, type=str, help='Load existing model.')
7272
parser.add_argument('--predict', default=None, type=str, help='Path of rough sketch to simplify using existing model')

0 commit comments

Comments
 (0)