          logger.debug("Getting batchsize")
          is_cpu = GPUStats().device_count == 0
          batchsize = 1 if is_cpu else self._model.config["convert_batchsize"]
          batchsize = min(queue_size, batchsize)
          logger.debug("Batchsize: %s", batchsize)
          logger.debug("Got batchsize: %s", batchsize)
          return batchsize
  
      def _get_model_name(self, model_dir: str) -> str:
          """ Return the name of the Faceswap model used.
 
</s> remove         retval = dict(input=input_shape[0][1], output=output_shape[-1][1])
 </s> add         retval = {"input": input_shape[0][1], "output": output_shape[-1][1]} </s> remove                                   sample_size,
 </s> add                                   self._sample_size,
          logger.debug("Getting batchsize")
          is_cpu = GPUStats().device_count == 0
          batchsize = 1 if is_cpu else self._model.config["convert_batchsize"]
          batchsize = min(queue_size, batchsize)

          logger.debug("Got batchsize: %s", batchsize)
          return batchsize
  
      def _get_model_name(self, model_dir: str) -> str:
          """ Return the name of the Faceswap model used.
keep keep keep keep replace keep keep keep keep keep
 bugfix: Preview tool Don't error if too few images 
scripts/convert.py