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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user