Skip to content

Commit

Permalink
Merge pull request #146 from hairyputtar/main
Browse files Browse the repository at this point in the history
fix more typos
  • Loading branch information
kunncheng authored Oct 25, 2023
2 parents c242a6a + b4cd5c7 commit 20bce2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion third_part/face3d/options/base_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion third_part/face3d/util/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
6 changes: 3 additions & 3 deletions third_part/face3d/util/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion third_part/ganimation_replicate/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 20bce2e

Please sign in to comment.