Refactor AIImages UI layout for improved positioning and consistency. Remove ShotType settings and related code to simplify prompt generation. Update models to include new properties for hair and apparel definitions, enhancing data handling for character appearance.

This commit is contained in:
Leonid Pershin
2025-10-26 18:23:40 +03:00
parent 0f60721162
commit 6715544952
8 changed files with 100 additions and 99 deletions

View File

@@ -16,6 +16,7 @@ namespace AIImages.Models
public string BodyType { get; set; }
public Color SkinColor { get; set; }
public string HairStyle { get; set; }
public string HairDefName { get; set; }
public Color HairColor { get; set; }
public List<Trait> Traits { get; set; }
public List<ApparelData> Apparel { get; set; }
@@ -33,7 +34,9 @@ namespace AIImages.Models
public class ApparelData
{
public string Label { get; set; }
public string DefName { get; set; }
public string Material { get; set; }
public string MaterialDefName { get; set; }
public QualityCategory? Quality { get; set; }
public Color Color { get; set; }
public string LayerType { get; set; }

View File

@@ -15,7 +15,6 @@ namespace AIImages.Models
public int Seed { get; set; }
public string Model { get; set; }
public ArtStyle ArtStyle { get; set; }
public ShotType ShotType { get; set; }
public StableDiffusionSettings()
{
@@ -27,7 +26,6 @@ namespace AIImages.Models
Sampler = "Euler a";
Seed = -1; // Случайный seed
ArtStyle = ArtStyle.Realistic;
ShotType = ShotType.Portrait;
PositivePrompt = "";
NegativePrompt = "ugly, deformed, low quality, blurry, bad anatomy, worst quality";
}
@@ -38,6 +36,7 @@ namespace AIImages.Models
/// </summary>
public enum ArtStyle
{
None, // Без стиля
Realistic,
SemiRealistic,
Anime,
@@ -47,16 +46,4 @@ namespace AIImages.Models
Sketch,
CellShaded,
}
/// <summary>
/// Тип кадра/композиции
/// </summary>
public enum ShotType
{
Portrait, // Портрет (голова и плечи)
HalfBody, // Половина тела
FullBody, // Полное тело
CloseUp, // Крупный план
ThreeQuarter, // Три четверти
}
}