Skip to content

Commit

Permalink
🔥 Remove auto generation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Aug 17, 2023
1 parent addd518 commit 6d69565
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -109,7 +108,6 @@ const messages = {
config: '配置',
},
gen: {
autoGenerationModeHint: '根据所选区域自动选择生成模式。',
skip: '跳过',
interrupt: '中断',
addLoRA: '添加 LoRA',
Expand Down
7 changes: 0 additions & 7 deletions src/views/GenerationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -418,8 +413,6 @@ const stepProgress = computed(() => {
<PayloadRadio :value="appState.generationMode" @update:value="mode => appState.generationMode = mode"
:enum-type="GenerationMode">
</PayloadRadio>
<a-checkbox v-model:checked="appState.autoGenerationMode"
:label="$t('gen.autoGenerationModeHint')">Auto</a-checkbox>
</a-space>

<a-form :model="appState.commonPayload" class="payload" :labelWrap="true" layout="vertical" size="small">
Expand Down

0 comments on commit 6d69565

Please sign in to comment.