(self, name, img, env=None, opts=None)
vis image in visdom
vis image in visdom
vis image in visdom
def vis_image(self, name, img, env=None, opts=None):
        """ vis image in visdom
        """
        if env is None:
            env = self.env 
        if self.id is not None:
            name = "[%s]"%self.id + name
        #win = self.cur_win.get(name, None)
        default_opts = { 'title': name }
        if opts is not None:
                default_opts.update(opts)
        #if win is not None:
        self.vis.image( img=img, win=name, opts=opts, env=env )
def vis_image ( self , name , img , env = None , opts = None ) : if env is None : env = self . env if self . id is not None : name = "[%s]" % self . id + name #win = self.cur_win.get(name, None) default_opts = { 'title' : name } if opts is not None : default_opts . update ( opts ) #if win is not None: self . vis . image ( img = img , win = name , opts = opts , env = env )