From 706f1260355216746370dcdd8d91356a347b739a Mon Sep 17 00:00:00 2001 From: Yak! Date: Tue, 28 May 2024 01:12:30 +0900 Subject: [PATCH] Add a LyCORIS folder to path_loras in Fooocus config. --- StabilityMatrix.Core/Models/Packages/Fooocus.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/StabilityMatrix.Core/Models/Packages/Fooocus.cs b/StabilityMatrix.Core/Models/Packages/Fooocus.cs index fcaff9538..3899fa0ef 100644 --- a/StabilityMatrix.Core/Models/Packages/Fooocus.cs +++ b/StabilityMatrix.Core/Models/Packages/Fooocus.cs @@ -312,7 +312,11 @@ await fooocusConfigPath.ReadAllTextAsync().ConfigureAwait(false) } fooocusConfig["path_checkpoints"] = Path.Combine(settingsManager.ModelsDirectory, "StableDiffusion"); - fooocusConfig["path_loras"] = Path.Combine(settingsManager.ModelsDirectory, "Lora"); + fooocusConfig["path_loras"] = new JsonArray + { + Path.Combine(settingsManager.ModelsDirectory, "Lora"), + Path.Combine(settingsManager.ModelsDirectory, "LyCORIS") + }; fooocusConfig["path_embeddings"] = Path.Combine(settingsManager.ModelsDirectory, "TextualInversion"); fooocusConfig["path_vae_approx"] = Path.Combine(settingsManager.ModelsDirectory, "ApproxVAE"); fooocusConfig["path_upscale_models"] = Path.Combine(settingsManager.ModelsDirectory, "ESRGAN");