From 6d695651b788ab2e47bbbb1a1bc012ed50428edb Mon Sep 17 00:00:00 2001 From: huchenlei Date: Wed, 16 Aug 2023 21:34:27 -0400 Subject: [PATCH] :fire: Remove auto generation mode --- src/Core.ts | 2 -- src/i18n.ts | 2 -- src/views/GenerationView.vue | 7 ------- 3 files changed, 11 deletions(-) diff --git a/src/Core.ts b/src/Core.ts index 32914d4..f13b17c 100644 --- a/src/Core.ts +++ b/src/Core.ts @@ -23,7 +23,6 @@ interface IApplicationState { img2imgPayload: IImg2ImgPayload; txt2imgPayload: ITxt2ImgPayload; generationMode: GenerationMode; - autoGenerationMode: boolean; // Custom generation mechanism added outside A1111. // The scale ratio to upscale generated image. imageScale: number; @@ -51,7 +50,6 @@ class ApplicationState implements IApplicationState { img2imgPayload: IImg2ImgPayload = new Img2ImgPayload(); txt2imgPayload: ITxt2ImgPayload = new Txt2ImgPayload(); generationMode: GenerationMode = GenerationMode.Img2Img; - autoGenerationMode: boolean = true; imageScale: number = 1.0; referenceRange: [number, number] = [64, 10]; referenceRangeMode: ReferenceRangeMode = ReferenceRangeMode.kPixel; diff --git a/src/i18n.ts b/src/i18n.ts index 1474a58..fc63c86 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -10,7 +10,6 @@ const messages = { config: 'Config', }, gen: { - autoGenerationModeHint: 'Automatically select generation mode based on selected area.', skip: 'Skip', interrupt: 'Interrupt', addLoRA: 'Add LoRA', @@ -109,7 +108,6 @@ const messages = { config: '配置', }, gen: { - autoGenerationModeHint: '根据所选区域自动选择生成模式。', skip: '跳过', interrupt: '中断', addLoRA: '添加 LoRA', diff --git a/src/views/GenerationView.vue b/src/views/GenerationView.vue index faaa81c..070b3be 100644 --- a/src/views/GenerationView.vue +++ b/src/views/GenerationView.vue @@ -226,11 +226,6 @@ async function preparePayload() { // Handling extension fillExtensionsArgs(); - if (appState.autoGenerationMode) { - const isImg2Img = !(image.isSolidColor && mask.isSolidColor); - appState.generationMode = isImg2Img ? GenerationMode.Img2Img : GenerationMode.Txt2Img; - } - appState.commonPayload.width = image.width * appState.imageScale; appState.commonPayload.height = image.height * appState.imageScale; @@ -418,8 +413,6 @@ const stepProgress = computed(() => { - Auto