  
          if not all(os.path.isfile(os.path.join(self.model_dir, fname))
                     for fname in legacy_mapping):
              return
          archive_dir = f"{self.model_dir}_TF1_Archived"
          if os.path.exists(archive_dir):
              raise FaceswapError("We need to update your model files for use with Tensorflow 2.x, "
                                  "but the archive folder already exists. Please remove the "
                                  f"following folder to continue: '{archive_dir}'")
  
 
</s> remove         if not all(os.path.isfile(os.path.join(self.model_dir, fname))
 </s> add         if not all(os.path.isfile(os.path.join(self.io.model_dir, fname)) </s> remove                    f"'{self.model_dir}'.\nPlease select a different model folder.")
 </s> add                    f"'{self.io.model_dir}'.\nPlease select a different model folder.") </s> remove                 msg = (f"Unable to load the model from '{self._filename}'. This may be a "
 </s> add                 msg = (f"Unable to load the model from '{self.filename}'. This may be a " </s> remove                    f"{self.model_dir}'. This is not supported.\nPlease split the model files into "
                   "their own folders before proceeding")
 </s> add                    f"{self.io.model_dir}'. This is not supported.\nPlease split the model files "
                   "into their own folders before proceeding") </s> remove                 msg = (f"Unable to load the model from '{self._filename}'. This may be a "
 </s> add                 msg = (f"Unable to load the model from '{self.filename}'. This may be a "
        archive_dir = f"{self.io.model_dir}_TF1_Archived"
  
          if not all(os.path.isfile(os.path.join(self.model_dir, fname))
                     for fname in legacy_mapping):
              return
        archive_dir = f"{self.io.model_dir}_TF1_Archived"
          if os.path.exists(archive_dir):
              raise FaceswapError("We need to update your model files for use with Tensorflow 2.x, "
                                  "but the archive folder already exists. Please remove the "
                                  f"following folder to continue: '{archive_dir}'")
  
keep keep keep keep replace keep keep keep keep keep
 Learning Rate finder (#1341)

* Add LR Finder support structure

* Move trainer.Feeder to lib.training.generator

* Expose model.io

* Add lr_finder

* Update docs and locales

* Pre-PR fixups
  - Fix training graph not displaying
  - CI fixes
  - Switch lr finder progress to tqdm
  - Exit lr finder early on NaN
  - Display lr finder progress in GUI 
plugins/train/model/_base/model.py