def prepare_generation_settings(self, config):
        """Populate config settings with the values set by the user in the GUI"""
        config.settings.lcm_diffusion_setting.seed = self.get_seed_value()
        config.settings.lcm_diffusion_setting.lcm_lora.lcm_lora_id = (
            self.lcm_lora_id.currentText()
        )
        config.settings.lcm_diffusion_setting.lcm_lora.base_model_id = (
            self.base_model_id.currentText()
        )

        if config.settings.lcm_diffusion_setting.use_openvino:
            model_id = self.openvino_lcm_model_id.currentText()
            config.settings.lcm_diffusion_setting.openvino_lcm_model_id = model_id
        else:
            model_id = self.lcm_model.currentText()
            config.settings.lcm_diffusion_setting.lcm_model_id = model_id

        config.reshape_required = False
        config.model_id = model_id
        if config.settings.lcm_diffusion_setting.use_openvino:
            # Detect dimension change
            config.reshape_required = is_reshape_required(
                self.previous_width,
                config.settings.lcm_diffusion_setting.image_width,
                self.previous_height,
                config.settings.lcm_diffusion_setting.image_height,
                self.previous_model,
                model_id,
                self.previous_num_of_images,
                config.settings.lcm_diffusion_setting.number_of_images,
            )
        config.settings.lcm_diffusion_setting.diffusion_task = (
            DiffusionTask.text_to_image.value
        )
Populate config settings with the values set by the user in the GUI
src/frontend/gui/app_window.py