Skip to content

Commit 5c8b122

Browse files
committed
fix issues about visualizer
1 parent 3bdcc65 commit 5c8b122

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

data/aligned_dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def __getitem__(self, index):
6262
# call standard transformation function
6363
A = self.transform_A(A)
6464
B = self.transform_B(B)
65-
print(AB_path, index)
6665
return {'A': A, 'B': B, 'A_paths': AB_path, 'B_paths': AB_path}
6766

6867
def __len__(self):

util/visualizer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ def display_current_results(self, visuals, epoch, save_result):
112112
if ncols > 0: # show all the images in one visdom window
113113
ncols = min(ncols, len(visuals))
114114
h, w = next(iter(visuals.values())).shape[:2]
115-
table_css = """ < style >
116-
table {border - collapse: separate; border - spacing: 4px; white - space: nowrap; text - align: center}
115+
table_css = """<style>
116+
table {border-collapse: separate; border-spacing: 4px; white-space: nowrap; text-align: center}
117117
table td {width: % dpx; height: % dpx; padding: 4px; outline: 4px solid black}
118-
< / style >""" % (w, h)
118+
</style>""" % (w, h)
119119
title = self.name
120120
label_html = ''
121121
label_html_row = ''
@@ -160,7 +160,7 @@ def display_current_results(self, visuals, epoch, save_result):
160160
img_path = os.path.join(self.img_dir, 'epoch%.3d_%s.png' % (epoch, label))
161161
util.save_image(image_numpy, img_path)
162162
# update website
163-
webpage = html.HTML(self.web_dir, 'Experiment name = %s' % self.name, reflesh=1)
163+
webpage = html.HTML(self.web_dir, 'Experiment name = %s' % self.name, refresh=1)
164164
for n in range(epoch, 0, -1):
165165
webpage.add_header('epoch [%d]' % n)
166166
ims, txts, links = [], [], []

0 commit comments

Comments
 (0)