code: def __init__(
      self,
      eval_set,
      image_dir,
      classes,
      plot_labels=True,
      num_images=5,
      epoch_freq=1,
      score_threshold=0.6,
  ):
      super(ssd_image_callback, self).__init__(epoch_freq=epoch_freq)
      self.eval_set = eval_set
      self.image_dir = image_dir
      self.num_images = num_images
      self.classes = classes
      self.score_threshold = score_threshold
  
      if not os.path.exists(image_dir):
          os.mkdir(image_dir)
          logger.info(
              "Creating folder for sample images: {}".format(image_dir)
          )
  
file_path: neon/examples/ssd/callbacks.py
imports: import numpy
  from neon.callbacks.callbacks import Callback
  from neon import logger
  from inference import get_boxes
  from util.voc_eval import voc_eval
  from util.util import plot_image
  import os
label_desc: Use image node_id 1 to create a new ssd_image_callback object from inherited base classes: Callback with example: obj = ssd_image_callback(eval_set, image_dir, classes, plot_labels, num_images, epoch_freq, score_threshold)