|
@@ -148,7 +148,7 @@ class Trainer(BaseTrainer):
|
|
|
|
|
|
|
|
def writer_predict_result(self, img, result, epoch):
|
|
def writer_predict_result(self, img, result, epoch):
|
|
|
img = img.cpu().detach()
|
|
img = img.cpu().detach()
|
|
|
- img=img[:3,:,:]
|
|
|
|
|
|
|
+ img=img[:3]
|
|
|
im = img.permute(1, 2, 0)
|
|
im = img.permute(1, 2, 0)
|
|
|
self.writer.add_image("z-ori", im, epoch, dataformats="HWC")
|
|
self.writer.add_image("z-ori", im, epoch, dataformats="HWC")
|
|
|
|
|
|