@@ -234,7 +234,8 @@ def _dump_measures(train_dpath, title='?name?', smoothing='auto', ignore_outlier
234234 else :
235235 smoothing_values = [smoothing ]
236236
237- plot_keys = [k for k in tb_data .keys () if '/' not in k ]
237+ # plot_keys = [k for k in tb_data.keys() if '/' not in k]
238+ plot_keys = [k for k in tb_data .keys ()]
238239 keys = set (tb_data .keys ()).intersection (set (plot_keys ))
239240 # no idea what hp metric is, but it doesn't seem important
240241 # keys = keys - {'hp_metric'}
@@ -243,7 +244,7 @@ def _dump_measures(train_dpath, title='?name?', smoothing='auto', ignore_outlier
243244 print ('warning: no known keys to plot' )
244245 print (f'available keys: { list (tb_data .keys ())} ' )
245246
246- USE_NEW_PLOT_PREF = 0
247+ USE_NEW_PLOT_PREF = 1
247248 if USE_NEW_PLOT_PREF :
248249 # TODO: finish this
249250 default_plot_preferences = kwutil .Yaml .loads (ub .codeblock (
@@ -419,7 +420,7 @@ def _dump_measures(train_dpath, title='?name?', smoothing='auto', ignore_outlier
419420 ax .set_title (title )
420421
421422 # png is smaller than jpg for this kind of plot
422- fpath = out_dpath / (key + '.png' )
423+ fpath = out_dpath / (key . replace ( '/' , '-' ) + '.png' )
423424 if verbose :
424425 print ('Save plot: ' + str (fpath ))
425426 ax .figure .savefig (fpath )
@@ -575,6 +576,7 @@ def main(cls, cmdline=1, **kwargs):
575576if __name__ == '__main__' :
576577 """
577578 CommandLine:
578- python -m callbacks.tensorboard_plotter .
579+ python -m yolo.utils.callbacks.tensorboard_plotter .
580+ python ~/code/YOLO-v9/yolo/utils/callbacks/tensorboard_plotter.py .
579581 """
580582 TensorboardPlotterCLI .main ()
0 commit comments