  
  import logging
  import os
  from datetime import datetime
  from shutil import copyfile, copytree
  
  from lib import Serializer
  from lib.utils import get_folder
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 
</s> remove         self.statusbar = get_config().statusbar
 </s> add         self.config = get_config()
        self.statusbar = self.config.statusbar </s> remove             if self.task.command == "train":
                self.tk_vars["istraining"].set(False)
 </s> add  </s> remove         logger.debug("Initialized session")
 </s> add         logger.debug("Initialized session. Session_ID: %s", self.session_id) </s> remove         logger.trace("Loading aligned face: (size: %s, align_eyes: %s, dtype: %s)",
                     size, align_eyes, dtype)
        padding = int(size * self.extract_ratio) // 2
        self.aligned["size"] = size
        self.aligned["padding"] = padding
        self.aligned["align_eyes"] = align_eyes
        self.aligned["matrix"] = get_align_mat(self, size, align_eyes)
        if image is None:
            self.aligned["face"] = None
 </s> add         # Don't reload an already aligned face:
        if self.aligned:
            logger.trace("Skipping alignment calculation for already aligned face")
from shutil import copyfile, copytree, rmtree
  
  import logging
  import os
  from datetime import datetime
from shutil import copyfile, copytree, rmtree
  
  from lib import Serializer
  from lib.utils import get_folder
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
keep keep keep keep replace keep keep keep keep keep
 Bugfixes

- Fix filter/nfilter for convert
- Remove existing snapshot folder before creating if it pre-exists
- Don't initialize training session until after first save. "Nonetype" session fix 
lib/model/backup_restore.py