def UpdateText(self, model):
     index, noise, scale = ToolUtil.GetModelAndScale(model)
     self.modelBox.setCurrentIndex(index)
     self.label_2.setText("去噪等级:" + str(noise))
     self.label_3.setText("放大倍数:" + str(scale))
     self.label_9.setText("转码模式:" +
                          self.readImg.owner().settingForm.GetGpuName())
 def SwitchModel(self, index):
     data = self.readImg.pictureData.get(self.readImg.curIndex)
     if not data:
         return
     if not data.model:
         return
     if not data.data:
         return
     index2, _, _ = ToolUtil.GetModelAndScale(data.model)
     if index2 == index:
         return
     data.model = ToolUtil.GetModelByIndex(index)
     data.waifuData = None
     data.waifuState = data.WaifuStateStart
     data.waifuDataSize = 0
     data.scaleW, data.scaleH = 0, 0
     data.waifuTick = 0
     self.label_2.setText("去噪等级:" + str(1))
     self.label_3.setText("放大倍数:" + str(1))
     self.SetData(waifuSize=QSize(), waifuDataLen=0, waifuTick=0)
     self.readImg.ShowImg()
     self.readImg.CheckLoadPicture()
     return