MCPcopy Index your code
hub / github.com/albertpumarola/GANimation / plot_scalars

Method plot_scalars

utils/tb_visualizer.py:36–39  ·  view source on GitHub ↗
(self, scalars, it, is_train)

Source from the content-addressed store, hash-verified

34 self._writer.export_scalars_to_json(self._tb_path)
35
36 def plot_scalars(self, scalars, it, is_train):
37 for label, scalar in scalars.items():
38 sum_name = '{}/{}'.format('Train' if is_train else 'Test', label)
39 self._writer.add_scalar(sum_name, scalar, it)
40
41 def print_current_train_errors(self, epoch, i, iters_per_epoch, errors, t, visuals_were_stored):
42 log_time = time.strftime("[%d/%m/%Y %H:%M:%S]")

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected