generate_perturbations_from_gt

menpofit.fitter.generate_perturbations_from_gt(images, n_perturbations, perturb_func, gt_group=None, bb_group_glob=None, verbose=False)[source]

Function that returns a callable that generates perturbations of the bounding boxes of the provided images.

Parameters
  • images (list of menpo.image.Image) – The list of images.

  • n_perturbations (int) – The number of perturbed shapes to be generated per image.

  • perturb_func (callable) – The function that will be used for generating the perturbations.

  • gt_group (str) – The group of the ground truth shapes attached to the images.

  • bb_group_glob (str) – The group of the bounding boxes attached to the images.

  • verbose (bool, optional) – If True, then progress information is printed.

Returns

generated_bb_func (callable) – The function that generates the perturbations.