|
|
@ -51,6 +51,7 @@ public class ComfyUI( |
|
|
|
[SharedFolderType.Diffusers] = new[] { "models/diffusers" }, |
|
|
|
[SharedFolderType.Diffusers] = new[] { "models/diffusers" }, |
|
|
|
[SharedFolderType.Lora] = new[] { "models/loras" }, |
|
|
|
[SharedFolderType.Lora] = new[] { "models/loras" }, |
|
|
|
[SharedFolderType.CLIP] = new[] { "models/clip" }, |
|
|
|
[SharedFolderType.CLIP] = new[] { "models/clip" }, |
|
|
|
|
|
|
|
[SharedFolderType.InvokeClipVision] = new[] { "models/clip_vision" }, |
|
|
|
[SharedFolderType.TextualInversion] = new[] { "models/embeddings" }, |
|
|
|
[SharedFolderType.TextualInversion] = new[] { "models/embeddings" }, |
|
|
|
[SharedFolderType.VAE] = new[] { "models/vae" }, |
|
|
|
[SharedFolderType.VAE] = new[] { "models/vae" }, |
|
|
|
[SharedFolderType.ApproxVAE] = new[] { "models/vae_approx" }, |
|
|
|
[SharedFolderType.ApproxVAE] = new[] { "models/vae_approx" }, |
|
|
@ -58,7 +59,9 @@ public class ComfyUI( |
|
|
|
[SharedFolderType.GLIGEN] = new[] { "models/gligen" }, |
|
|
|
[SharedFolderType.GLIGEN] = new[] { "models/gligen" }, |
|
|
|
[SharedFolderType.ESRGAN] = new[] { "models/upscale_models" }, |
|
|
|
[SharedFolderType.ESRGAN] = new[] { "models/upscale_models" }, |
|
|
|
[SharedFolderType.Hypernetwork] = new[] { "models/hypernetworks" }, |
|
|
|
[SharedFolderType.Hypernetwork] = new[] { "models/hypernetworks" }, |
|
|
|
[SharedFolderType.IpAdapter] = new[] { "models/ipadapter" }, |
|
|
|
[SharedFolderType.IpAdapter] = new[] { "models/ipadapter/base" }, |
|
|
|
|
|
|
|
[SharedFolderType.InvokeIpAdapters15] = new[] { "models/ipadapter/sd15" }, |
|
|
|
|
|
|
|
[SharedFolderType.InvokeIpAdaptersXl] = new[] { "models/ipadapter/sdxl" }, |
|
|
|
[SharedFolderType.T2IAdapter] = new[] { "models/controlnet/T2IAdapter" }, |
|
|
|
[SharedFolderType.T2IAdapter] = new[] { "models/controlnet/T2IAdapter" }, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -323,9 +326,16 @@ public class ComfyUI( |
|
|
|
Path.Combine(modelsDir, "T2IAdapter") |
|
|
|
Path.Combine(modelsDir, "T2IAdapter") |
|
|
|
); |
|
|
|
); |
|
|
|
nodeValue.Children["clip"] = Path.Combine(modelsDir, "CLIP"); |
|
|
|
nodeValue.Children["clip"] = Path.Combine(modelsDir, "CLIP"); |
|
|
|
|
|
|
|
nodeValue.Children["clip_vision"] = Path.Combine(modelsDir, "InvokeClipVision"); |
|
|
|
nodeValue.Children["diffusers"] = Path.Combine(modelsDir, "Diffusers"); |
|
|
|
nodeValue.Children["diffusers"] = Path.Combine(modelsDir, "Diffusers"); |
|
|
|
nodeValue.Children["gligen"] = Path.Combine(modelsDir, "GLIGEN"); |
|
|
|
nodeValue.Children["gligen"] = Path.Combine(modelsDir, "GLIGEN"); |
|
|
|
nodeValue.Children["vae_approx"] = Path.Combine(modelsDir, "ApproxVAE"); |
|
|
|
nodeValue.Children["vae_approx"] = Path.Combine(modelsDir, "ApproxVAE"); |
|
|
|
|
|
|
|
nodeValue.Children["ipadapter"] = string.Join( |
|
|
|
|
|
|
|
'\n', |
|
|
|
|
|
|
|
Path.Combine(modelsDir, "IpAdapter"), |
|
|
|
|
|
|
|
Path.Combine(modelsDir, "InvokeIpAdapters15"), |
|
|
|
|
|
|
|
Path.Combine(modelsDir, "InvokeIpAdaptersXl") |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -347,9 +357,19 @@ public class ComfyUI( |
|
|
|
string.Join('\n', Path.Combine(modelsDir, "ControlNet"), Path.Combine(modelsDir, "T2IAdapter")) |
|
|
|
string.Join('\n', Path.Combine(modelsDir, "ControlNet"), Path.Combine(modelsDir, "T2IAdapter")) |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ "clip", Path.Combine(modelsDir, "CLIP") }, |
|
|
|
{ "clip", Path.Combine(modelsDir, "CLIP") }, |
|
|
|
|
|
|
|
{ "clip_vision", Path.Combine(modelsDir, "InvokeClipVision") }, |
|
|
|
{ "diffusers", Path.Combine(modelsDir, "Diffusers") }, |
|
|
|
{ "diffusers", Path.Combine(modelsDir, "Diffusers") }, |
|
|
|
{ "gligen", Path.Combine(modelsDir, "GLIGEN") }, |
|
|
|
{ "gligen", Path.Combine(modelsDir, "GLIGEN") }, |
|
|
|
{ "vae_approx", Path.Combine(modelsDir, "ApproxVAE") } |
|
|
|
{ "vae_approx", Path.Combine(modelsDir, "ApproxVAE") }, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"ipadapter", |
|
|
|
|
|
|
|
string.Join( |
|
|
|
|
|
|
|
'\n', |
|
|
|
|
|
|
|
Path.Combine(modelsDir, "IpAdapter"), |
|
|
|
|
|
|
|
Path.Combine(modelsDir, "InvokeIpAdapters15"), |
|
|
|
|
|
|
|
Path.Combine(modelsDir, "InvokeIpAdaptersXl") |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|