mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): use flux redux influence on regional guidance
This commit is contained in:
@@ -48,7 +48,7 @@ export const addFLUXReduxes = ({ entities, g, collector, model }: AddFLUXReduxAr
|
||||
*
|
||||
* See invokeai/app/invocations/flux_redux.py for more details.
|
||||
*/
|
||||
const IMAGE_INFLUENCE_TO_SETTINGS: Record<
|
||||
export const IMAGE_INFLUENCE_TO_SETTINGS: Record<
|
||||
FLUXReduxImageInfluence,
|
||||
Pick<Invocation<'flux_redux'>, 'downsampling_factor' | 'downsampling_function' | 'weight'>
|
||||
> = {
|
||||
|
||||
@@ -5,6 +5,7 @@ import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { getPrefixedId } from 'features/controlLayers/konva/util';
|
||||
import type { CanvasRegionalGuidanceState, Rect } from 'features/controlLayers/store/types';
|
||||
import { getRegionalGuidanceWarnings } from 'features/controlLayers/store/validators';
|
||||
import { IMAGE_INFLUENCE_TO_SETTINGS } from 'features/nodes/util/graph/generation/addFLUXRedux';
|
||||
import type { Graph } from 'features/nodes/util/graph/generation/Graph';
|
||||
import { serializeError } from 'serialize-error';
|
||||
import type { Invocation, MainModelConfig } from 'services/api/types';
|
||||
@@ -313,6 +314,7 @@ export const addRegions = async ({
|
||||
image: {
|
||||
image_name: image.image_name,
|
||||
},
|
||||
...IMAGE_INFLUENCE_TO_SETTINGS[ipAdapter.imageInfluence ?? 'highest'],
|
||||
});
|
||||
|
||||
// Connect the mask to the conditioning
|
||||
|
||||
Reference in New Issue
Block a user