                          "again.".format(input_aligned_dir, self._alignments.file))
                  meta = data["source"]
              else:
                  meta = metadata["itxt"]["source"]
              retval.setdefault(meta["source_filename"], list()).append(meta["face_index"])
  
          if not retval:
              raise FaceswapError("Aligned directory is empty, no faces will be converted!")
          if len(retval) <= len(self._input_images) / 3:
              logger.warning("Aligned directory contains far fewer images than the input "
 
</s> remove         idx = int(indices[0]) if indices else None
 </s> add         idx = int(indices[0]) </s> remove         retval = list()
 </s> add         retval = [] </s> remove             return None
 </s> add             return False </s> remove         retval = "copy"
 </s> add         retval: Optional[str] = "copy" </s> remove         statefile = [fname for fname in os.listdir(str(model_dir))
                     if fname.endswith("_state.json")]
        if len(statefile) != 1:
            raise FaceswapError("There should be 1 state file in your model folder. {} were "
                                "found. Specify a trainer with the '-t', '--trainer' "
                                "option.".format(len(statefile)))
        statefile = os.path.join(str(model_dir), statefile[0])
 </s> add         statefiles = [fname for fname in os.listdir(str(model_dir))
                      if fname.endswith("_state.json")]
        if len(statefiles) != 1:
            raise FaceswapError("There should be 1 state file in your model folder. "
                                f"{len(statefiles)} were found. Specify a trainer with the '-t', "
                                "'--trainer' option.")
        statefile = os.path.join(str(model_dir), statefiles[0])
            retval.setdefault(meta["source_filename"], []).append(meta["face_index"])
                          "again.".format(input_aligned_dir, self._alignments.file))
                  meta = data["source"]
              else:
                  meta = metadata["itxt"]["source"]
            retval.setdefault(meta["source_filename"], []).append(meta["face_index"])
  
          if not retval:
              raise FaceswapError("Aligned directory is empty, no faces will be converted!")
          if len(retval) <= len(self._input_images) / 3:
              logger.warning("Aligned directory contains far fewer images than the input "
keep keep keep keep replace keep keep keep keep keep
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
scripts/convert.py