Skip to content

Commit

Permalink
minor spelling: reflesh->refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
brettkoonce committed Mar 26, 2018
1 parent 79f8865 commit f0020eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions courses/dl2/cgan/util/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class HTML:
def __init__(self, web_dir, title, reflesh=0):
def __init__(self, web_dir, title, refresh=0):
self.title = title
self.web_dir = web_dir
self.img_dir = os.path.join(self.web_dir, 'images')
Expand All @@ -15,9 +15,9 @@ def __init__(self, web_dir, title, reflesh=0):
# print(self.img_dir)

self.doc = dominate.document(title=title)
if reflesh > 0:
if refresh > 0:
with self.doc.head:
meta(http_equiv="reflesh", content=str(reflesh))
meta(http_equiv="refresh", content=str(refresh))

def get_image_dir(self):
return self.img_dir
Expand Down
2 changes: 1 addition & 1 deletion courses/dl2/cgan/util/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def display_current_results(self, visuals, epoch, save_result):
img_path = os.path.join(self.img_dir, 'epoch%.3d_%s.png' % (epoch, label))
util.save_image(image_numpy, img_path)
# update website
webpage = html.HTML(self.web_dir, 'Experiment name = %s' % self.name, reflesh=1)
webpage = html.HTML(self.web_dir, 'Experiment name = %s' % self.name, refresh=1)
for n in range(epoch, 0, -1):
webpage.add_header('epoch [%d]' % n)
ims = []
Expand Down

0 comments on commit f0020eb

Please sign in to comment.