Kaynağa Gözat

修复val损失为0的bug

RenLiqiang 5 ay önce
ebeveyn
işleme
d4f0a5ce77
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      models/line_detect/trainer.py

+ 1 - 1
models/line_detect/trainer.py

@@ -150,7 +150,7 @@ class Trainer(BaseTrainer):
     def writer_predict_result(self, img, result, epoch):
         img = img.cpu().detach()
         im = img.permute(1, 2, 0)  # [512, 512, 3]
-        self.writer.add_image("ori", im, epoch, dataformats="HWC")
+        self.writer.add_image("z-ori", im, epoch, dataformats="HWC")
 
         boxed_image = draw_bounding_boxes((img * 255).to(torch.uint8), result["boxes"],
                                           colors="yellow", width=1)