(self, step)
| 281 | |
| 282 | @torch.no_grad() |
| 283 | def _visualize_batch(self, step): |
| 284 | bs = 2 |
| 285 | feat_maps = self.encode() |
| 286 | for i in range(3): |
| 287 | fm = feat_maps[i].detach().cpu().numpy()[0, 0] |
| 288 | self.tb.add_figure(f"feat_map_{i}", draw_scalar_field2D(fm), global_step=step) |
| 289 | |
| 290 | @torch.no_grad() |
| 291 | def evaluate(self): |
no test coverage detected