Add image type selection feature in AIImages mod, allowing users to choose between portrait and full body images. Update English and Russian localization files to include new labels for image types. Modify UI components to render the image type selector and adjust generation settings accordingly. Update AIImages.dll to reflect these changes.

This commit is contained in:
Leonid Pershin
2025-10-31 10:46:53 +03:00
parent 731428fb44
commit 1b35cb6a44
7 changed files with 99 additions and 2 deletions

View File

@@ -1,5 +1,14 @@
namespace AIImages.Models
{
/// <summary>
/// Тип генерации изображения
/// </summary>
public enum ImageType
{
Portrait, // Портрет
FullBody, // Полное тело
}
/// <summary>
/// Настройки для генерации изображений через Stable Diffusion
/// </summary>
@@ -16,6 +25,7 @@ namespace AIImages.Models
public int Seed { get; set; }
public string Model { get; set; }
public string ArtStyleDefName { get; set; }
public ImageType ImageType { get; set; }
public StableDiffusionSettings()
{
@@ -30,6 +40,7 @@ namespace AIImages.Models
ArtStyleDefName = "ArtStyle_Realistic";
PositivePrompt = "";
NegativePrompt = "ugly, deformed, low quality, blurry, bad anatomy, worst quality";
ImageType = ImageType.Portrait;
}
}
}