code: def apply(model_path):
      
      pred_config = PredictConfig(
          session_init=get_model_loader(model_path),
          model=Model(),
          input_names=['input_img'],
          output_names=['prediction_img'])
  
      pred = OfflinePredictor(pred_config)
      img = cv2.imread('lena.png')
      prediction = pred([img])[0]
      cv2.imwrite('applied_default.jpg', prediction[0])
docs: Run inference from a training model checkpoint.