8f6a6f153781d0908fb0904349aae844494026ea,util/visualizer.py,Visualizer,display_current_results,#Visualizer#Any#Any#Any#,36
Before Change
title = self.name
label_html = ""
label_html_row = ""
nrows = int(np.ceil(len(visuals.items()) / ncols))
images = []
idx = 0
for label, image_numpy in visuals.items():
label_html_row += "<td>%s</td>" % label
After Change
if self.display_id > 0: // show images in the browser
ncols = self.ncols
if ncols > 0:
ncols = min(ncols, len(visuals))
h, w = next(iter(visuals.values())).shape[:2]
table_css = <style>
table {border-collapse: separate; border-spacing:4px; white-space:nowrap; text-align:center}
table td {width: %dpx; height: %dpx; padding: 4px; outline: 4px solid black}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 8f6a6f153781d0908fb0904349aae844494026ea
Time: 2018-12-03
Author: yanzhaoyi@outlook.com
File Name: util/visualizer.py
Class Name: Visualizer
Method Name: display_current_results
Project Name: junyanz/pytorch-CycleGAN-and-pix2pix
Commit Name: f4af199e0025065d7006fe326b55f25a74e9d625
Time: 2018-04-18
Author: junyanzhu89@gmail.com
File Name: util/visualizer.py
Class Name: Visualizer
Method Name: display_current_results