text: import pdb
  import json
  import numpy as np
  import matplotlib
  matplotlib.use('Agg')
  import matplotlib.pyplot as plt
  import pandas
  import sys
  
  def autolabel(rects,ax):
      """
      Attach a text label above each bar displaying its height
      """
      for rect in rects:
          height = rect.get_height()
  #        pdb.set_trace()
          ax.text(rect.get_x() + rect.get_width()/2., 1.01*height,
                  '%s' % round(height,2),
                  ha='center', va='bottom', fontsize=14)
  
  homo = [3724, 5735]
  hetero = [3119, 3653]
  data1 = [3724, 3119]
  models = ['U-Net', 'YOLOv3']
  colors = ['tomato', 'springgreen']
  labels = ['28 P100', '18 T4 + 11 P100']
  
  fig, axs = plt.subplots(1, 1, figsize=(3.5,3.5), gridspec_kw={'hspace': 0, 'wspace': 0.3, 'top': 0.95, 'left':0.2, 'right':0.99, 'bottom':0.1})
  
  x = np.arange(len(homo))
  width = 0.4
  
  rect1=axs.bar(x[0], data1[0], width=width, label=labels[0], edgecolor='black', linewidth=1.5, zorder=3, color=colors[0])
  rect2=axs.bar(x[1], data1[1], width=width, label=labels[1], edgecolor='black', linewidth=1.5, zorder=3, color=colors[1])
  
  autolabel(rect1,axs)
  autolabel(rect2,axs)
  
  axs.set_xticks(x)
  xlabel = ['P100 only', 'T4 + P100']
  axs.set_xticklabels(xlabel, fontsize=14)
  axs.set_ylabel('Power (W)', fontsize=14)
  #autolabel(rect, axs[0])
  axs.set_ylim(0,6000)
  axs.grid(which='major', axis='y', ls='dotted')
  axs.legend(fontsize=14)
  axs.tick_params(axis='y', which='major', labelsize=14)
  
  plt.savefig(f'plots/eval_1a.pdf', bbox_inches='tight')
  
  ################
  
  data2 = [5735, 3653]
  labels = ['31 P100', '28 T4 + 9 P100']
  
  fig, axs = plt.subplots(1, 1, figsize=(3.5,3.5), gridspec_kw={'hspace': 0, 'wspace': 0.3, 'top': 0.95, 'left':0.2, 'right':0.99, 'bottom':0.1})
  
  x = np.arange(len(homo))
  width = 0.4
  
  rect1=axs.bar(x[0], data2[0], width=width, label=labels[0], edgecolor='black', linewidth=1.5, zorder=3, color=colors[0])
  rect2=axs.bar(x[1], data2[1], width=width, label=labels[1], edgecolor='black', linewidth=1.5, zorder=3, color=colors[1])
  
  autolabel(rect1,axs)
  autolabel(rect2,axs)
  
  axs.set_xticks(x)
  axs.set_xticklabels(xlabel, fontsize=14)
  axs.set_ylabel('Power (W)', fontsize=14)
  #autolabel(rect, axs[0])
  axs.set_ylim(0,9000)
  axs.grid(which='major', axis='y', ls='dotted')
  axs.legend(fontsize=14)
  axs.tick_params(axis='y', which='major', labelsize=14)
  
  plt.savefig(f'plots/eval_1b.pdf', bbox_inches='tight')
  
  