elf.create_saver() for saving the models, you can restore the latest model by calling self.create_saver() after creating the network but before creating a session, and then calling self.restore(sess). Example:</p>
        <pre><code>
def get_pred_fn(self, model_file=None):
    sess, latest_model_file = self.restore_net_common(model_file=model_file)
    conf = self.conf

    def pred_fn(all_f):
        # all_f will have size [B,H,W,C]
        bsize = conf.batch_size
        xs, locs_in = PoseTools.preprocess