|
|
|
@ -310,21 +310,12 @@ public class ComfyNodeBuilder
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public record LoadImage : ComfyTypedNodeBase<ImageNodeConnection, ImageMaskConnection> |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// Create a LoadImage node. |
|
|
|
|
/// Path relative to the Comfy input directory |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="name">Name of the node</param> |
|
|
|
|
/// <param name="relativeInputPath">Path relative to the Comfy input directory</param> |
|
|
|
|
public static NamedComfyNode<ImageNodeConnection, ImageMaskConnection> LoadImage( |
|
|
|
|
string name, |
|
|
|
|
string relativeInputPath |
|
|
|
|
) |
|
|
|
|
{ |
|
|
|
|
return new NamedComfyNode<ImageNodeConnection, ImageMaskConnection>(name) |
|
|
|
|
{ |
|
|
|
|
ClassType = "LoadImage", |
|
|
|
|
Inputs = new Dictionary<string, object?> { ["image"] = relativeInputPath } |
|
|
|
|
}; |
|
|
|
|
public required string Image { get; init; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public record PreviewImage : ComfyTypedNodeBase |
|
|
|
|