self.vis.images(images, nrow=ncols, win=self.display_id + 1,
padding=2, opts=dict(title=title + " images"))
label_html = "<table>%s</table>" % label_html
self.vis.text(table_css + label_html, win=self.display_id + 2,
opts=dict(title=title + " labels"))
except ConnectionError:
print("\n\nCould not connect to Visdom server (https://github.com/facebookresearch/visdom) for displaying training progress.\nYou can suppress connection to Visdom using the option --display_id -1. To install visdom, run \n$ pip install visdom\n, and start the server by \n$ python -m visdom.server.\n\n")
exit(1)