    def _get_previous_conf(self):
        """ Checks if a session_config.yml is available in the pretrained weights folder. """
        
        if self.pretrained_generator_weights:
            session_config_path = (
                    self.pretrained_generator_weights.parent / self.session_config_name
            )
            if session_config_path.exists():
                return yaml.load(session_config_path.read_text(), Loader=yaml.FullLoader)
            else:
                self.logger.warning('Could not find previous configuration')
                return {}
        
        return {}
Checks if a session_config.yml is available in the pretrained weights folder.
ISR/utils/train_helper.py