checkpoint before checking out main
This commit is contained in:
@@ -86,6 +86,7 @@ public class SwarmUiClientTests
|
||||
preset.ClipSkip = 2;
|
||||
preset.Sampler = "dpmpp_sde";
|
||||
preset.Scheduler = "karras";
|
||||
preset.PositiveLoras = [new SwarmUiLoraEntry { Name = "style.safetensors", Weight = 0.75 }];
|
||||
var profile = preset.ToProfile(PortraitKind.Avatar);
|
||||
|
||||
await client.GenerateAsync("a student", "bad", profile, CancellationToken.None);
|
||||
@@ -93,6 +94,8 @@ public class SwarmUiClientTests
|
||||
using var document = JsonDocument.Parse(handler.GenerateBody!);
|
||||
Assert.Equal(-2, document.RootElement.GetProperty("clipstopatlayer").GetInt32());
|
||||
Assert.False(document.RootElement.TryGetProperty("clipskip", out _));
|
||||
Assert.Equal("style.safetensors", document.RootElement.GetProperty("loras").GetString());
|
||||
Assert.Equal("0.75", document.RootElement.GetProperty("loraweights").GetString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user