mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(nodes): add high-level images service
feat(nodes): add ResultsServiceABC & SqliteResultsService **Doesn't actually work bc of circular imports. Can't even test it.** - add a base class for ResultsService and SQLite implementation - use `graph_execution_manager` `on_changed` callback to keep `results` table in sync fix(nodes): fix results service bugs chore(ui): regen api fix(ui): fix type guards feat(nodes): add `result_type` to results table, fix types fix(nodes): do not shadow `list` builtin feat(nodes): add results router It doesn't work due to circular imports still fix(nodes): Result class should use outputs classes, not fields feat(ui): crude results router fix(ui): send to canvas in currentimagebuttons not working feat(nodes): add core metadata builder feat(nodes): add design doc feat(nodes): wip latents db stuff feat(nodes): images_db_service and resources router feat(nodes): wip images db & router feat(nodes): update image related names feat(nodes): update urlservice feat(nodes): add high-level images service
This commit is contained in:
committed by
Kent Keirsey
parent
fb0b63c580
commit
9c89d3452c
@ -8,7 +8,7 @@ import type { ImageField } from './ImageField';
|
||||
* Base class for invocations that output an image
|
||||
*/
|
||||
export type ImageOutput = {
|
||||
type: 'image';
|
||||
type: 'image_output';
|
||||
/**
|
||||
* The output image
|
||||
*/
|
||||
|
@ -11,5 +11,13 @@ export type RandomIntInvocation = {
|
||||
*/
|
||||
id: string;
|
||||
type?: 'rand_int';
|
||||
/**
|
||||
* The inclusive low value
|
||||
*/
|
||||
low?: number;
|
||||
/**
|
||||
* The exclusive high value
|
||||
*/
|
||||
high?: number;
|
||||
};
|
||||
|
||||
|
@ -12,5 +12,13 @@ export const $RandomIntInvocation = {
|
||||
type: {
|
||||
type: 'Enum',
|
||||
},
|
||||
low: {
|
||||
type: 'number',
|
||||
description: `The inclusive low value`,
|
||||
},
|
||||
high: {
|
||||
type: 'number',
|
||||
description: `The exclusive high value`,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
@ -10,11 +10,16 @@ import {
|
||||
CollectInvocationOutput,
|
||||
ImageType,
|
||||
ImageField,
|
||||
LatentsOutput,
|
||||
} from 'services/api';
|
||||
|
||||
export const isImageOutput = (
|
||||
output: GraphExecutionState['results'][string]
|
||||
): output is ImageOutput => output.type === 'image';
|
||||
): output is ImageOutput => output.type === 'image_output';
|
||||
|
||||
export const isLatentsOutput = (
|
||||
output: GraphExecutionState['results'][string]
|
||||
): output is LatentsOutput => output.type === 'latents_output';
|
||||
|
||||
export const isMaskOutput = (
|
||||
output: GraphExecutionState['results'][string]
|
||||
|
Reference in New Issue
Block a user