@@ -51,14 +51,17 @@ IPrerequisiteHelper prerequisiteHelper
51
51
[ SharedFolderType . Diffusers ] = new [ ] { "models/diffusers" } ,
52
52
[ SharedFolderType . Lora ] = new [ ] { "models/loras" } ,
53
53
[ SharedFolderType . CLIP ] = new [ ] { "models/clip" } ,
54
+ [ SharedFolderType . InvokeClipVision ] = new [ ] { "models/clip_vision" } ,
54
55
[ SharedFolderType . TextualInversion ] = new [ ] { "models/embeddings" } ,
55
56
[ SharedFolderType . VAE ] = new [ ] { "models/vae" } ,
56
57
[ SharedFolderType . ApproxVAE ] = new [ ] { "models/vae_approx" } ,
57
58
[ SharedFolderType . ControlNet ] = new [ ] { "models/controlnet/ControlNet" } ,
58
59
[ SharedFolderType . GLIGEN ] = new [ ] { "models/gligen" } ,
59
60
[ SharedFolderType . ESRGAN ] = new [ ] { "models/upscale_models" } ,
60
61
[ 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" } ,
62
65
[ SharedFolderType . T2IAdapter ] = new [ ] { "models/controlnet/T2IAdapter" } ,
63
66
} ;
64
67
@@ -323,9 +326,16 @@ private async Task SetupModelFoldersConfig(DirectoryPath installDirectory)
323
326
Path . Combine ( modelsDir , "T2IAdapter" )
324
327
) ;
325
328
nodeValue . Children [ "clip" ] = Path . Combine ( modelsDir , "CLIP" ) ;
329
+ nodeValue . Children [ "clip_vision" ] = Path . Combine ( modelsDir , "InvokeClipVision" ) ;
326
330
nodeValue . Children [ "diffusers" ] = Path . Combine ( modelsDir , "Diffusers" ) ;
327
331
nodeValue . Children [ "gligen" ] = Path . Combine ( modelsDir , "GLIGEN" ) ;
328
332
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
+ ) ;
329
339
}
330
340
else
331
341
{
@@ -347,9 +357,19 @@ private async Task SetupModelFoldersConfig(DirectoryPath installDirectory)
347
357
string . Join ( '\n ' , Path . Combine ( modelsDir , "ControlNet" ) , Path . Combine ( modelsDir , "T2IAdapter" ) )
348
358
} ,
349
359
{ "clip" , Path . Combine ( modelsDir , "CLIP" ) } ,
360
+ { "clip_vision" , Path . Combine ( modelsDir , "InvokeClipVision" ) } ,
350
361
{ "diffusers" , Path . Combine ( modelsDir , "Diffusers" ) } ,
351
362
{ "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
+ }
353
373
}
354
374
) ;
355
375
}
0 commit comments