f4af199e0025065d7006fe326b55f25a74e9d625,util/visualizer.py,Visualizer,save_images,#Visualizer#,127

Before Change


        webpage.add_header(name)
        ims = []
        txts = []
        links = []

        for label, im in visuals.items():
            image_name = "%s_%s.png" % (name, label)
            save_path = os.path.join(image_dir, image_name)

After Change


        ims, txts, links = [], [], []

        for label, im_data in visuals.items():
            im = util.tensor2im(im_data)
            image_name = "%s_%s.png" % (name, label)
            save_path = os.path.join(image_dir, image_name)
            h, w, _ = im.shape
            if aspect_ratio > 1.0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: richzhang/colorization-pytorch
Commit Name: f4af199e0025065d7006fe326b55f25a74e9d625
Time: 2018-04-18
Author: junyanzhu89@gmail.com
File Name: util/visualizer.py
Class Name: Visualizer
Method Name: save_images


Project Name: richzhang/colorization-pytorch
Commit Name: f4af199e0025065d7006fe326b55f25a74e9d625
Time: 2018-04-18
Author: junyanzhu89@gmail.com
File Name: util/visualizer.py
Class Name: Visualizer
Method Name: display_current_results