          * **warp_to_landmarks** (`bool`) - ``True`` if the random warp method should warp to \
          similar landmarks from the other side, ``False`` if the standard random warp method \
          should be used. If ``True`` then the additional key ``landmarks`` must be provided.
  
          * **landmarks** (`numpy.ndarray`, `optional`). Required if using a :attr:`mask_type` is \
          not ``None`` or :attr:`warp_to_landmarks` is ``True``. The 68 point face landmarks from \
          an alignments file.
  
      config: dict
          The configuration ``dict`` generated from :file:`config.train.ini` containing the trainer \
          plugin configuration options.
      """
 
</s> remove         * **mask_type** (`str`) - The mask type to be used (as defined in \
        :mod:`lib.model.masks`). If not ``None`` then the additional key ``landmarks`` must be \
        provided.

 </s> add  </s> remove             the format (`batchsize`, `height`, `width`, `1`). **NB:** This item will only exist \
            in the ``dict`` if the :attr:`mask_type` is not ``None``
 </s> add             the format (`batchsize`, `height`, `width`, `1`). </s> remove             the format (`batchsize`, `height`, `width`, `1`). **NB:** This item will only exist \
            in the ``dict`` if a batch of 4 channel images has been passed in :attr:`batch`
 </s> add             the format (`batchsize`, `height`, `width`, `1`). </s> remove         config item ``warp_to_landmarks`` is ``True`` or if :attr:`mask_type` is not ``None``. If
        the landmarks for an image cannot be found, then an error is raised. """
 </s> add         config item ``warp_to_landmarks`` is ``True``. If the landmarks for an image cannot be
        found, then an error is raised. """
        * **landmarks** (`numpy.ndarray`, `optional`). Required if :attr:`warp_to_landmarks` is \
        ``True``. The 68 point face landmarks from an alignments file.
          * **warp_to_landmarks** (`bool`) - ``True`` if the random warp method should warp to \
          similar landmarks from the other side, ``False`` if the standard random warp method \
          should be used. If ``True`` then the additional key ``landmarks`` must be provided.
  
        * **landmarks** (`numpy.ndarray`, `optional`). Required if :attr:`warp_to_landmarks` is \
        ``True``. The 68 point face landmarks from an alignments file.
        * **landmarks** (`numpy.ndarray`, `optional`). Required if :attr:`warp_to_landmarks` is \
        ``True``. The 68 point face landmarks from an alignments file.
        * **landmarks** (`numpy.ndarray`, `optional`). Required if :attr:`warp_to_landmarks` is \
        ``True``. The 68 point face landmarks from an alignments file.
  
      config: dict
          The configuration ``dict`` generated from :file:`config.train.ini` containing the trainer \
          plugin configuration options.
      """
keep keep keep keep replace replace replace keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
lib/training_data.py