mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(app): merge progress events into one
- Merged `InvocationGenericProgressEvent` and `InvocationDenoiseProgressEvent` into single `InvocationProgressEvent` - Simplified API - message is required, percentage and image are optional, no steps/total steps - Added helper to build a `ProgressImage` - Added field validation to `ProgressImage` width and height - Added `ProgressImage` to `invocation_api.py` - Updated `InvocationContext` utils
This commit is contained in:
@ -20,9 +20,8 @@ from invokeai.app.services.events.events_common import (
|
||||
DownloadStartedEvent,
|
||||
FastAPIEvent,
|
||||
InvocationCompleteEvent,
|
||||
InvocationDenoiseProgressEvent,
|
||||
InvocationErrorEvent,
|
||||
InvocationGenericProgressEvent,
|
||||
InvocationProgressEvent,
|
||||
InvocationStartedEvent,
|
||||
ModelEventBase,
|
||||
ModelInstallCancelledEvent,
|
||||
@ -56,8 +55,7 @@ class BulkDownloadSubscriptionEvent(BaseModel):
|
||||
|
||||
QUEUE_EVENTS = {
|
||||
InvocationStartedEvent,
|
||||
InvocationDenoiseProgressEvent,
|
||||
InvocationGenericProgressEvent,
|
||||
InvocationProgressEvent,
|
||||
InvocationCompleteEvent,
|
||||
InvocationErrorEvent,
|
||||
QueueItemStatusChangedEvent,
|
||||
|
Reference in New Issue
Block a user