Skip to content

Commit

Permalink
Merge pull request #833 from jeremydk/comfyui_unet
Browse files Browse the repository at this point in the history
Quickly adding unet path for ComfyUI
  • Loading branch information
mohnjiles authored Aug 20, 2024
2 parents baf7331 + 7d7e7d1 commit dcf8a40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions StabilityMatrix.Core/Models/Packages/ComfyUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ IPrerequisiteHelper prerequisiteHelper
[SharedFolderType.InvokeIpAdapters15] = new[] { "models/ipadapter/sd15" },
[SharedFolderType.InvokeIpAdaptersXl] = new[] { "models/ipadapter/sdxl" },
[SharedFolderType.T2IAdapter] = new[] { "models/controlnet/T2IAdapter" },
[SharedFolderType.PromptExpansion] = new[] { "models/prompt_expansion" }
[SharedFolderType.PromptExpansion] = new[] { "models/prompt_expansion" },
[SharedFolderType.Unet] = new[] { "models/unet" }
};

public override Dictionary<SharedOutputType, IReadOnlyList<string>>? SharedOutputFolders =>
Expand Down Expand Up @@ -373,6 +374,7 @@ private async Task SetupModelFoldersConfig(DirectoryPath installDirectory)
Path.Combine(modelsDir, "InvokeIpAdaptersXl")
);
nodeValue.Children["prompt_expansion"] = Path.Combine(modelsDir, "PromptExpansion");
nodeValue.Children["unet"] = Path.Combine(modelsDir, "unet");
}
else
{
Expand Down Expand Up @@ -411,7 +413,8 @@ private async Task SetupModelFoldersConfig(DirectoryPath installDirectory)
Path.Combine(modelsDir, "InvokeIpAdaptersXl")
)
},
{ "prompt_expansion", Path.Combine(modelsDir, "PromptExpansion") }
{ "prompt_expansion", Path.Combine(modelsDir, "PromptExpansion") },
{ "unet", Path.Combine(modelsDir, "unet") },
}
);
}
Expand Down
3 changes: 2 additions & 1 deletion StabilityMatrix.Core/Models/SharedFolderType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ public enum SharedFolderType
InvokeClipVision = 1 << 26,
SVD = 1 << 27,

PromptExpansion = 1 << 30
PromptExpansion = 1 << 30,
Unet = 1 << 31
}

0 comments on commit dcf8a40

Please sign in to comment.