MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / _visualize_batch

Method _visualize_batch

src/encoding/model.py:283–288  ·  view source on GitHub ↗
(self, step)

Source from the content-addressed store, hash-verified

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):

Callers 1

trainMethod · 0.95

Calls 2

encodeMethod · 0.95
draw_scalar_field2DFunction · 0.90

Tested by

no test coverage detected