_file_used = self.get_saved_model_info()
          else:
              model_file_used = model_file
          self.load_model(model_file_used)
          
          <b>def pred_fn(ims):</b>
              # ims is a numpy array of a batch input images of shape conf.batch_size x conf.imsz[0] x conf.imsz[1] x conf.img_dim
              
              preprocessed_ims = self.preprocess(ims)
              # preprocess the inputs images to normalize them. The range of values of ims will be form 0 to 255 even thoug