fix(ui): save upscaled images to gallery on canvas tab

This commit is contained in:
psychedelicious 2024-05-04 10:16:00 +10:00 committed by Kent Keirsey
parent 6bdded85da
commit 8794b99d51

View File

@ -1,5 +1,5 @@
import type { RootState } from 'app/store/store'; import type { RootState } from 'app/store/store';
import { getBoardField, getIsIntermediate } from 'features/nodes/util/graph/graphBuilderUtils'; import { getBoardField } from 'features/nodes/util/graph/graphBuilderUtils';
import type { ESRGANInvocation, Graph, NonNullableGraph } from 'services/api/types'; import type { ESRGANInvocation, Graph, NonNullableGraph } from 'services/api/types';
import { ESRGAN } from './constants'; import { ESRGAN } from './constants';
@ -18,7 +18,7 @@ export const buildAdHocUpscaleGraph = ({ image_name, state }: Arg): Graph => {
type: 'esrgan', type: 'esrgan',
image: { image_name }, image: { image_name },
model_name: esrganModelName, model_name: esrganModelName,
is_intermediate: getIsIntermediate(state), is_intermediate: false,
board: getBoardField(state), board: getBoardField(state),
}; };