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:
Binary file not shown.
@@ -79,5 +79,10 @@ namespace AIImages.Models
|
||||
/// Идет ли генерация в данный момент
|
||||
/// </summary>
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Превью текущего состояния генерации (base64)
|
||||
/// </summary>
|
||||
public string CurrentImage { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user