code: def __init__(self, root, load_data=True):
      eyes_info = mio.import_pickle(osp.join(root, "eyes3d.pkl"))
      idxs481 = eyes_info["mask481"]["idxs"]
      tri481 = eyes_info["mask481"]["trilist"]
      self.iris_idx_481 = eyes_info["mask481"]["idxs_iris"]
      eyel_template = eyes_info["left_points"][idxs481]
      eyer_template = eyes_info["right_points"][idxs481]
      eyel_template_homo = np.append(
          eyel_template, np.ones((eyel_template.shape[0], 1)), axis=1
      )
      eyer_template_homo = np.append(
          eyer_template, np.ones((eyer_template.shape[0], 1)), axis=1
      )
      points = mio.import_pickle(osp.join(root, "eyespoints.pkl"))
      self.homol = eyel_template_homo.T
      self.homor = eyer_template_homo.T
      if load_data:
          self.worldl = {}
          self.worldr = {}
          # vector_norm = 0.035
          for k in points:
              p = k.find("/")
              newk = k[p + 1 :]
              value = points[k]
              # el_inv = (value['left'] @ eyel_template_homo.T).T
              # er_inv = (value['right'] @ eyer_template_homo.T).T
              # print('V:', value['left'][:5,:])
              # print('E:', el_inv[:5,:])
              # gaze vector of left eye in world space
              # gl_vector = el_inv[iris_idx_481].mean(axis=0) - el_inv[-1]
              # gl_vector = (gl_vector / np.linalg.norm(gl_vector)) * vector_norm
              # gl_point = el_inv[iris_idx_481].mean(axis=0) + gl_vector
              ## gaze vector of right eye in world space
              # gr_vector = er_inv[iris_idx_481].mean(axis=0) - er_inv[-1]
              # gr_vector = (gr_vector / np.linalg.norm(gr_vector)) * vector_norm
              # gr_point = er_inv[iris_idx_481].mean(axis=0) + gr_vector
              # self.world[newk] = (el_inv, er_inv, gl_point, gr_point)
              self.worldl[newk] = value["left"]
              self.worldr[newk] = value["right"]
  
file_path: insightface/reconstruction/jmlr/eye_dataset.py
imports: import os
  import os.path
  import numpy
  import menpo.io
label_desc: Use image node_id 1 to create a new EyeDataset object  with example: obj = EyeDataset(root, load_data)