Add CurrentImage property to GenerationRequest model for preview functionality and update StableDiffusionNetAdapter to include current image in progress tracking. Update AIImages.dll to reflect these changes.

This commit is contained in:
Leonid Pershin
2025-10-27 00:08:06 +03:00
parent 379865a6aa
commit 9e675dd804
3 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@@ -79,5 +79,10 @@ namespace AIImages.Models
/// Идет ли генерация в данный момент
/// </summary>
public bool IsActive { get; set; }
/// <summary>
/// Превью текущего состояния генерации (base64)
/// </summary>
public string CurrentImage { get; set; }
}
}

View File

@@ -156,6 +156,7 @@ namespace AIImages.Services
TotalSteps = progress.State?.SamplingSteps ?? 0,
EtaRelative = progress.EtaRelative,
IsActive = progress.Progress > 0 && progress.Progress < 1.0,
CurrentImage = progress.CurrentImage, // Превью текущего состояния генерации
};
}
catch (Exception ex)