mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): denoise percentage
This commit is contained in:
parent
8b5caa7e57
commit
a1d68eb319
@ -97,7 +97,7 @@ export const systemSlice = createSlice({
|
|||||||
* Generator Progress
|
* Generator Progress
|
||||||
*/
|
*/
|
||||||
builder.addCase(socketGeneratorProgress, (state, action) => {
|
builder.addCase(socketGeneratorProgress, (state, action) => {
|
||||||
const { step, total_steps, progress_image, session_id, batch_id } = action.payload.data;
|
const { step, total_steps, progress_image, session_id, batch_id, percentage } = action.payload.data;
|
||||||
|
|
||||||
if (state.cancellations.includes(session_id)) {
|
if (state.cancellations.includes(session_id)) {
|
||||||
// Do not update the progress if this session has been cancelled. This prevents a race condition where we get a
|
// Do not update the progress if this session has been cancelled. This prevents a race condition where we get a
|
||||||
@ -108,7 +108,7 @@ export const systemSlice = createSlice({
|
|||||||
state.denoiseProgress = {
|
state.denoiseProgress = {
|
||||||
step,
|
step,
|
||||||
total_steps,
|
total_steps,
|
||||||
percentage: step / total_steps,
|
percentage,
|
||||||
progress_image,
|
progress_image,
|
||||||
session_id,
|
session_id,
|
||||||
batch_id,
|
batch_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user