def update_density_fn(self): #Construct empty array for current image. par_obj.im_for_train = [par_obj.curr_img] v2.update_density_fn(par_obj) self.plt2.cla() self.plt2.imshow(par_obj.dense_array[par_obj.curr_img]) self.plt2.set_xticklabels([]) self.plt2.set_yticklabels([]) self.canvas2.draw()
def feat_scale_change_btn_fn(self): self.feat_scale_change_btn.setEnabled(False) print('Training Features') processImgs() v2.update_density_fn() self.feat_scale_change_btn.setEnabled(True) self.image_status_text.showMessage('Model Trained. Continue adding samples, or click \'Save Training Model\'. ') self.save_model_btn.setEnabled(True) v2.eval_pred_show_fn(par_obj.curr_img,par_obj,self)