diff --git a/third_part/face3d/options/base_options.py b/third_part/face3d/options/base_options.py index d8f921d5..ffc98dc3 100644 --- a/third_part/face3d/options/base_options.py +++ b/third_part/face3d/options/base_options.py @@ -18,7 +18,7 @@ class BaseOptions(): """ def __init__(self, cmd_line=None): - """Reset the class; indicates the class hasn't been initailized""" + """Reset the class; indicates the class hasn't been initialized""" self.initialized = False self.cmd_line = None if cmd_line is not None: diff --git a/third_part/face3d/util/html.py b/third_part/face3d/util/html.py index cc3262a1..04b53c79 100644 --- a/third_part/face3d/util/html.py +++ b/third_part/face3d/util/html.py @@ -66,7 +66,7 @@ def add_images(self, ims, txts, links, width=400): p(txt) def save(self): - """save the current content to the HMTL file""" + """save the current content to the HTML file""" html_file = '%s/index.html' % self.web_dir f = open(html_file, 'wt') f.write(self.doc.render()) diff --git a/third_part/face3d/util/visualizer.py b/third_part/face3d/util/visualizer.py index 4023a6d4..fdfa4d8a 100644 --- a/third_part/face3d/util/visualizer.py +++ b/third_part/face3d/util/visualizer.py @@ -54,7 +54,7 @@ def __init__(self, opt): opt -- stores all the experiment flags; needs to be a subclass of BaseOptions Step 1: Cache the training/test options Step 2: create a tensorboard writer - Step 3: create an HTML object for saveing HTML filters + Step 3: create an HTML object for saving HTML filters Step 4: create a logging file to store training losses """ self.opt = opt # cache the option @@ -155,10 +155,10 @@ def __init__(self, opt): opt -- stores all the experiment flags; needs to be a subclass of BaseOptions Step 1: Cache the training/test options Step 2: create a tensorboard writer - Step 3: create an HTML object for saveing HTML filters + Step 3: create an HTML object for saving HTML filters Step 4: create a logging file to store training losses """ - self.opt = opt # cache the optio + self.opt = opt # cache the option self.name = opt.name self.img_dir = os.path.join(opt.checkpoints_dir, opt.name, 'results') diff --git a/third_part/ganimation_replicate/options.py b/third_part/ganimation_replicate/options.py index 1d9df01b..ed06f1cc 100644 --- a/third_part/ganimation_replicate/options.py +++ b/third_part/ganimation_replicate/options.py @@ -81,7 +81,7 @@ def initialize(self): parser.add_argument('--lambda_wgan_gp', type=float, default=10., help='wgan gradient penalty weight') # frequency options - parser.add_argument('--train_gen_iter', type=int, default=5, help='train G every n interations.') + parser.add_argument('--train_gen_iter', type=int, default=5, help='train G every n iterations.') parser.add_argument('--print_losses_freq', type=int, default=100, help='print log every print_freq step.') parser.add_argument('--plot_losses_freq', type=int, default=20000, help='plot log every plot_freq step.') parser.add_argument('--sample_img_freq', type=int, default=2000, help='draw image every sample_img_freq step.')