Skip to content

Commit ba606cb

Browse files
authored
Merge pull request #416 from ionite34/fix-xl-clip-vision
fix SDXL clip vision download having same folder name as SD1.5 clip vision...
2 parents c14ab62 + a907914 commit ba606cb

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

88
## v2.7.3
9+
### Added
10+
- Added missing IPAdapter and CLIP Vision folder links for ComfyUI
911
### Fixed
1012
- Fixed UnicodeDecodeError when using extra_model_paths.yaml in ComfyUI on certain locales
13+
- Fixed SDXL CLIP Vision model directory name conflict
1114
- Fixed [#334](https://github.com/LykosAI/StabilityMatrix/issues/334) - Win32Exception if Settings are opened
1215

1316
## v2.7.2

StabilityMatrix.Avalonia/Assets/hf-packages.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"config.json",
352352
"model.safetensors"
353353
],
354-
"Subfolder": "ip_adapter_sd_image_encoder",
354+
"Subfolder": "ip_adapter_sdxl_image_encoder",
355355
"LicenseType": "Apache 2.0"
356356
},
357357
{

StabilityMatrix.Core/Models/Packages/ComfyUI.cs

+22-2
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ IPrerequisiteHelper prerequisiteHelper
5151
[SharedFolderType.Diffusers] = new[] { "models/diffusers" },
5252
[SharedFolderType.Lora] = new[] { "models/loras" },
5353
[SharedFolderType.CLIP] = new[] { "models/clip" },
54+
[SharedFolderType.InvokeClipVision] = new[] { "models/clip_vision" },
5455
[SharedFolderType.TextualInversion] = new[] { "models/embeddings" },
5556
[SharedFolderType.VAE] = new[] { "models/vae" },
5657
[SharedFolderType.ApproxVAE] = new[] { "models/vae_approx" },
5758
[SharedFolderType.ControlNet] = new[] { "models/controlnet/ControlNet" },
5859
[SharedFolderType.GLIGEN] = new[] { "models/gligen" },
5960
[SharedFolderType.ESRGAN] = new[] { "models/upscale_models" },
6061
[SharedFolderType.Hypernetwork] = new[] { "models/hypernetworks" },
61-
[SharedFolderType.IpAdapter] = new[] { "models/ipadapter" },
62+
[SharedFolderType.IpAdapter] = new[] { "models/ipadapter/base" },
63+
[SharedFolderType.InvokeIpAdapters15] = new[] { "models/ipadapter/sd15" },
64+
[SharedFolderType.InvokeIpAdaptersXl] = new[] { "models/ipadapter/sdxl" },
6265
[SharedFolderType.T2IAdapter] = new[] { "models/controlnet/T2IAdapter" },
6366
};
6467

@@ -323,9 +326,16 @@ private async Task SetupModelFoldersConfig(DirectoryPath installDirectory)
323326
Path.Combine(modelsDir, "T2IAdapter")
324327
);
325328
nodeValue.Children["clip"] = Path.Combine(modelsDir, "CLIP");
329+
nodeValue.Children["clip_vision"] = Path.Combine(modelsDir, "InvokeClipVision");
326330
nodeValue.Children["diffusers"] = Path.Combine(modelsDir, "Diffusers");
327331
nodeValue.Children["gligen"] = Path.Combine(modelsDir, "GLIGEN");
328332
nodeValue.Children["vae_approx"] = Path.Combine(modelsDir, "ApproxVAE");
333+
nodeValue.Children["ipadapter"] = string.Join(
334+
'\n',
335+
Path.Combine(modelsDir, "IpAdapter"),
336+
Path.Combine(modelsDir, "InvokeIpAdapters15"),
337+
Path.Combine(modelsDir, "InvokeIpAdaptersXl")
338+
);
329339
}
330340
else
331341
{
@@ -347,9 +357,19 @@ private async Task SetupModelFoldersConfig(DirectoryPath installDirectory)
347357
string.Join('\n', Path.Combine(modelsDir, "ControlNet"), Path.Combine(modelsDir, "T2IAdapter"))
348358
},
349359
{ "clip", Path.Combine(modelsDir, "CLIP") },
360+
{ "clip_vision", Path.Combine(modelsDir, "InvokeClipVision") },
350361
{ "diffusers", Path.Combine(modelsDir, "Diffusers") },
351362
{ "gligen", Path.Combine(modelsDir, "GLIGEN") },
352-
{ "vae_approx", Path.Combine(modelsDir, "ApproxVAE") }
363+
{ "vae_approx", Path.Combine(modelsDir, "ApproxVAE") },
364+
{
365+
"ipadapter",
366+
string.Join(
367+
'\n',
368+
Path.Combine(modelsDir, "IpAdapter"),
369+
Path.Combine(modelsDir, "InvokeIpAdapters15"),
370+
Path.Combine(modelsDir, "InvokeIpAdaptersXl")
371+
)
372+
}
353373
}
354374
);
355375
}

0 commit comments

Comments
 (0)