comfyui-workflow-builder 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -88,7 +88,6 @@ workflow.addNode(saveImage);
88
88
 
89
89
  // 3. Export to JSON
90
90
  const workflowJson = workflow.workflow();
91
- console.log(JSON.stringify(workflowJson, null, 2));
92
91
  ```
93
92
 
94
93
  ### 2. Using Pre-built Workflows
@@ -40,7 +40,11 @@ export function basicImageGenerationWorkflow(input) {
40
40
  imageNode = vaEncodeNode;
41
41
  }
42
42
  else {
43
- imageNode = new EmptyLatentImageNode();
43
+ imageNode = new EmptyLatentImageNode({
44
+ width: input.width,
45
+ height: input.height,
46
+ batch_size: input.batch_size
47
+ });
44
48
  }
45
49
  workflow.addNode(imageNode);
46
50
  let easyLoraStackNode, easyApplyLoraStackNode;
@@ -88,6 +92,5 @@ export function basicImageGenerationWorkflow(input) {
88
92
  image: vaeDecodeNode
89
93
  });
90
94
  workflow.addNode(saveImageNode);
91
- console.log(workflow.workflow());
92
95
  return workflow;
93
96
  }
@@ -15,6 +15,7 @@ export interface ImageGenerationWorkflowInput {
15
15
  sampler?: string;
16
16
  width?: number;
17
17
  height?: number;
18
+ batch_size?: number;
18
19
  image?: string;
19
20
  denoise?: number;
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comfyui-workflow-builder",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",