  
      def load_session(self):
          """ Load previously saved sessions """
          logger.debug("Loading session")
          fullpath = FileHandler("filename", "state").retfile
          if not fullpath:
              return
          self.clear_session()
          logger.debug("state_file: '%s'", fullpath)
          model_dir, state_file = os.path.split(fullpath)
          logger.debug("model_dir: '%s'", model_dir)
          model_name = self.get_model_name(model_dir, state_file)
 
</s> remove     def load_session(self):
 </s> add     def populate_from_folder(self, *args):  # pylint:disable=unused-argument
        """ Populate the Analysis tab from just a model folder. Triggered
        when tkinter variable ``analysis_folder`` is set.
        """
        folder = get_config().tk_vars["analysis_folder"].get()
        if not folder or not os.path.isdir(folder):
            logger.debug("Not a valid folder")
            self.clear_session()
            return

        state_files = [fname
                       for fname in os.listdir(folder)
                       if fname.endswith("_state.json")]
        if not state_files:
            logger.debug("No state files found in folder: '%s'", folder)
            self.clear_session()
            return

        state_file = state_files[0]
        if len(state_files) > 1:
            logger.debug("Multiple models found. Selecting: '%s'", state_file)

        if self.thread is None:
            self.load_session(fullpath=os.path.join(folder, state_file))

    def load_session(self, fullpath=None): </s> remove         imagefiles = self.get_images(self.pathpreview)
 </s> add         image_files = self._get_images(self._pathpreview) </s> remove         if not imagefiles:
 </s> add         if not image_files: </s> remove         """ Load the training preview images """
 </s> add         """ Load the training preview images.

        Reads the training image currently stored in the cache folder and loads them to
        :attr:`previewtrain` for retrieval in the GUI.
        """ </s> remove         self.previewcache["placeholder"] = placeholder
 </s> add         self._previewcache["placeholder"] = placeholder
        if fullpath is None:
            fullpath = FileHandler("filename", "state").retfile
            if not fullpath:
                return
  
      def load_session(self):
          """ Load previously saved sessions """
          logger.debug("Loading session")
        if fullpath is None:
            fullpath = FileHandler("filename", "state").retfile
            if not fullpath:
                return
        if fullpath is None:
            fullpath = FileHandler("filename", "state").retfile
            if not fullpath:
                return
        if fullpath is None:
            fullpath = FileHandler("filename", "state").retfile
            if not fullpath:
                return
          self.clear_session()
          logger.debug("state_file: '%s'", fullpath)
          model_dir, state_file = os.path.split(fullpath)
          logger.debug("model_dir: '%s'", model_dir)
          model_name = self.get_model_name(model_dir, state_file)
keep keep keep keep replace replace replace keep keep keep keep keep
 GUI Updates (#940)

* lib.gui: Update icons
* tools.cli: Add video filetype flag to mask input
* lib.gui.popup_configure: Refresh GUI on config save
* lib.gui._config: Add Icon size and load last session options
* lib.gui.control_helper - Add control modification tracking
* lib.gui - Add Projects and Last Session
- Main root title handled by projects
- Add Hotkeys
- Create projects module
- split fsw and fst filetypes
- Add last_session saving

* lib.project
- Documentation
- Ask confirm on closing unsaved project
-Fixups

* Track model folder changes
- Shuffle some globals
- Activate System Verbosity for GUI

* lib.gui.utils - Documentation and clean up
- lib.gui.custom_widgets - Create and document

* Add GUI config option to disable auto loading model stats 
lib/gui/display_analysis.py