08f4de1a61f16b42333b75b9c1f2287c5fe0796c,util/visualizer.py,Visualizer,display_current_results,#Visualizer#,63

Before Change


                // pane col = image row
                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"))
            else:
                idx = 1
                for label, image in visuals.items():
                    image_numpy = util.tensor2im(image)

After Change


                try:
                    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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: junyanz/pytorch-CycleGAN-and-pix2pix
Commit Name: 08f4de1a61f16b42333b75b9c1f2287c5fe0796c
Time: 2018-06-07
Author: taesung89@gmail.com
File Name: util/visualizer.py
Class Name: Visualizer
Method Name: display_current_results


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: f196ed568b58c5815376d7e7d71d3fe483c34fa1
Time: 2019-01-17
Author: yanzhaoyi@outlook.com
File Name: util/visualizer.py
Class Name: Visualizer
Method Name: display_current_results


Project Name: explosion/spaCy
Commit Name: 04982ccc4033ec15864bba659430a8408ca94774
Time: 2019-07-09
Author: 33514570+BreakBB@users.noreply.github.com
File Name: spacy/cli/pretrain.py
Class Name:
Method Name: pretrain