Enhance AIImages mod by adding scheduler support and updating UI for improved model and sampler selection. Localized strings in English and Russian have been updated for clarity. Update AIImages.dll to reflect changes in functionality.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using AIImages.Models;
|
||||
using Verse;
|
||||
|
||||
@@ -13,6 +14,17 @@ namespace AIImages.Settings
|
||||
public string apiEndpoint = "http://127.0.0.1:7860";
|
||||
public string selectedModel = "";
|
||||
public string selectedSampler = "Euler a";
|
||||
public string selectedScheduler = "Automatic";
|
||||
|
||||
// Кэшированные списки из API (не сохраняются)
|
||||
[Unsaved]
|
||||
public List<string> availableModels = new List<string>();
|
||||
|
||||
[Unsaved]
|
||||
public List<string> availableSamplers = new List<string>();
|
||||
|
||||
[Unsaved]
|
||||
public List<string> availableSchedulers = new List<string>();
|
||||
|
||||
// Настройки генерации
|
||||
public int steps = 30;
|
||||
@@ -42,6 +54,7 @@ namespace AIImages.Settings
|
||||
Scribe_Values.Look(ref apiEndpoint, "apiEndpoint", "http://127.0.0.1:7860");
|
||||
Scribe_Values.Look(ref selectedModel, "selectedModel", "");
|
||||
Scribe_Values.Look(ref selectedSampler, "selectedSampler", "Euler a");
|
||||
Scribe_Values.Look(ref selectedScheduler, "selectedScheduler", "Automatic");
|
||||
|
||||
Scribe_Values.Look(ref steps, "steps", 30);
|
||||
Scribe_Values.Look(ref cfgScale, "cfgScale", 7.5f);
|
||||
@@ -79,6 +92,7 @@ namespace AIImages.Settings
|
||||
Width = width,
|
||||
Height = height,
|
||||
Sampler = selectedSampler,
|
||||
Scheduler = selectedScheduler,
|
||||
Seed = seed,
|
||||
Model = selectedModel,
|
||||
ArtStyle = artStyle,
|
||||
|
||||
Reference in New Issue
Block a user