def __init__(self,opt): self.vis = visdom.Visdom(port=opt.port) self.trainLossInit = True self.testLossInit = True self.meanVarInit = True