Refactor AIImages mod to replace ArtStyle enum with ArtStyleDef name for improved flexibility in prompt generation. Update UI components to reflect changes in art style selection and enhance scrolling functionality in the right column. Update AIImages.dll to incorporate the latest modifications.

This commit is contained in:
Leonid Pershin
2025-10-27 00:19:31 +03:00
parent 9e675dd804
commit ce98638e55
11 changed files with 594 additions and 138 deletions

View File

@@ -15,7 +15,7 @@ namespace AIImages.Models
public string Scheduler { get; set; }
public int Seed { get; set; }
public string Model { get; set; }
public ArtStyle ArtStyle { get; set; }
public string ArtStyleDefName { get; set; }
public StableDiffusionSettings()
{
@@ -25,27 +25,11 @@ namespace AIImages.Models
Width = 512;
Height = 768;
Sampler = "Euler a";
Scheduler = "Automatic";
Scheduler = "Automatic"; // С большой буквы для API
Seed = -1; // Случайный seed
ArtStyle = ArtStyle.Realistic;
ArtStyleDefName = "ArtStyle_Realistic";
PositivePrompt = "";
NegativePrompt = "ugly, deformed, low quality, blurry, bad anatomy, worst quality";
}
}
/// <summary>
/// Художественный стиль изображения
/// </summary>
public enum ArtStyle
{
None, // Без стиля
Realistic,
SemiRealistic,
Anime,
ConceptArt,
DigitalPainting,
OilPainting,
Sketch,
CellShaded,
}
}