fix(ui): remove references to metadata accumulator

This commit is contained in:
psychedelicious
2023-10-18 15:38:27 +11:00
parent e3e8d8af02
commit d32caf7cb1
2 changed files with 1 additions and 5 deletions

View File

@ -2,13 +2,12 @@ import { NUMPY_RAND_MAX } from 'app/constants';
import { RootState } from 'app/store/store'; import { RootState } from 'app/store/store';
import { generateSeeds } from 'common/util/generateSeeds'; import { generateSeeds } from 'common/util/generateSeeds';
import { NonNullableGraph } from 'features/nodes/types/types'; import { NonNullableGraph } from 'features/nodes/types/types';
import { range, unset } from 'lodash-es'; import { range } from 'lodash-es';
import { components } from 'services/api/schema'; import { components } from 'services/api/schema';
import { Batch, BatchConfig } from 'services/api/types'; import { Batch, BatchConfig } from 'services/api/types';
import { import {
CANVAS_COHERENCE_NOISE, CANVAS_COHERENCE_NOISE,
METADATA, METADATA,
METADATA_ACCUMULATOR,
NOISE, NOISE,
POSITIVE_CONDITIONING, POSITIVE_CONDITIONING,
} from './constants'; } from './constants';
@ -149,8 +148,6 @@ export const prepareLinearUIBatch = (
}); });
if (shouldConcatSDXLStylePrompt && model?.base_model === 'sdxl') { if (shouldConcatSDXLStylePrompt && model?.base_model === 'sdxl') {
unset(graph.nodes[METADATA_ACCUMULATOR], 'positive_style_prompt');
const stylePrompts = extendedPrompts.map((p) => const stylePrompts = extendedPrompts.map((p) =>
[p, positiveStylePrompt].join(' ') [p, positiveStylePrompt].join(' ')
); );

View File

@ -63,7 +63,6 @@ export const BATCH_SEED = 'batch_seed';
export const BATCH_PROMPT = 'batch_prompt'; export const BATCH_PROMPT = 'batch_prompt';
export const BATCH_STYLE_PROMPT = 'batch_style_prompt'; export const BATCH_STYLE_PROMPT = 'batch_style_prompt';
export const METADATA_COLLECT = 'metadata_collect'; export const METADATA_COLLECT = 'metadata_collect';
export const METADATA_ACCUMULATOR = 'metadata_accumulator';
export const MERGE_METADATA = 'merge_metadata'; export const MERGE_METADATA = 'merge_metadata';
export const REALESRGAN = 'esrgan'; export const REALESRGAN = 'esrgan';
export const DIVIDE = 'divide'; export const DIVIDE = 'divide';