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