  
      def load_one_image(self, filename):
          """ load requested image """
          logger.trace("Loading image: '%s'", filename)
          if self.is_video:
              if filename.isdigit():
                  frame_no = filename
              else:
                  frame_no = os.path.splitext(filename)[0][filename.rfind("_") + 1:]
                  logger.trace("Extracted frame_no %s from filename '%s'", frame_no, filename)
 
</s> remove             retval = self.load_one_video_frame(int(frame_no))
 </s> add             retval = self._load_one_video_frame(int(frame_no)) </s> remove         """ load requested image """
 </s> add         """ Obtain a single image for the given filename.

        Parameters
        ----------
        filename: str
            The filename to return the image for

        Returns
        ------
        :class:`numpy.ndarray`
            The image for the requested filename,

        """ </s> remove                         for frame_no in range(1, self.images.images_found + 1)]
 </s> add                         for frame_no in range(1, self._images.images_found + 1)] </s> remove             logger.debug("Alignments from Input Folder: '%s'", self.args.input_dir)
            folder = str(self.args.input_dir)
 </s> add             logger.debug("Alignments from Input Folder: '%s'", self._args.input_dir)
            folder = str(self._args.input_dir) </s> remove         vidname = os.path.splitext(os.path.basename(self.args.input_dir))[0]
        reader = imageio.get_reader(self.args.input_dir, "ffmpeg")
 </s> add         vidname = os.path.splitext(os.path.basename(self._args.input_dir))[0]
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")
        if self._is_video:
  
      def load_one_image(self, filename):
          """ load requested image """
          logger.trace("Loading image: '%s'", filename)
        if self._is_video:
              if filename.isdigit():
                  frame_no = filename
              else:
                  frame_no = os.path.splitext(filename)[0][filename.rfind("_") + 1:]
                  logger.trace("Extracted frame_no %s from filename '%s'", frame_no, filename)
keep keep keep keep replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
scripts/fsmedia.py