Spaces:
Running on Zero
Running on Zero
Deploy GitHub dc4387d3dbd5c45edde5f50e1be19ce6471d962e
Browse files- core/pipelines/workflow_recipes/_partials/input/hires_fix.yaml +27 -0
- core/pipelines/workflow_recipes/_partials/input/img2img.yaml +20 -0
- core/pipelines/workflow_recipes/_partials/input/inpaint.yaml +23 -0
- core/pipelines/workflow_recipes/_partials/input/outpaint.yaml +41 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img.yaml +2 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_chroma_radiance_latent.yaml +11 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_flux2_latent.yaml +11 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_hidream_o1_latent.yaml +11 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_hunyuan_latent.yaml +11 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_latent.yaml +11 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_none.yaml +5 -0
- core/pipelines/workflow_recipes/_partials/input/txt2img_sd3_latent.yaml +11 -0
core/pipelines/workflow_recipes/_partials/input/hires_fix.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
input_image_loader:
|
| 3 |
+
class_type: LoadImage
|
| 4 |
+
title: "Load Input Image"
|
| 5 |
+
vae_encode:
|
| 6 |
+
class_type: VAEEncode
|
| 7 |
+
title: "VAE Encode (Hires Pre-step)"
|
| 8 |
+
latent_upscaler:
|
| 9 |
+
class_type: LatentUpscaleBy
|
| 10 |
+
title: "Upscale Latent By"
|
| 11 |
+
latent_source:
|
| 12 |
+
class_type: RepeatLatentBatch
|
| 13 |
+
title: "Repeat Latent Batch for Hires"
|
| 14 |
+
|
| 15 |
+
connections:
|
| 16 |
+
- from: "input_image_loader:0"
|
| 17 |
+
to: "vae_encode:pixels"
|
| 18 |
+
- from: "vae_encode:0"
|
| 19 |
+
to: "latent_upscaler:samples"
|
| 20 |
+
- from: "latent_upscaler:0"
|
| 21 |
+
to: "latent_source:samples"
|
| 22 |
+
|
| 23 |
+
ui_map:
|
| 24 |
+
input_image: "input_image_loader:image"
|
| 25 |
+
hires_upscaler: "latent_upscaler:upscale_method"
|
| 26 |
+
hires_scale_by: "latent_upscaler:scale_by"
|
| 27 |
+
batch_size: "latent_source:amount"
|
core/pipelines/workflow_recipes/_partials/input/img2img.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
input_image_loader:
|
| 3 |
+
class_type: LoadImage
|
| 4 |
+
title: "Load Input Image"
|
| 5 |
+
vae_encode:
|
| 6 |
+
class_type: VAEEncode
|
| 7 |
+
title: "VAE Encode (Img2Img)"
|
| 8 |
+
latent_source:
|
| 9 |
+
class_type: RepeatLatentBatch
|
| 10 |
+
title: "Repeat Latent Batch"
|
| 11 |
+
|
| 12 |
+
connections:
|
| 13 |
+
- from: "input_image_loader:0"
|
| 14 |
+
to: "vae_encode:pixels"
|
| 15 |
+
- from: "vae_encode:0"
|
| 16 |
+
to: "latent_source:samples"
|
| 17 |
+
|
| 18 |
+
ui_map:
|
| 19 |
+
input_image: "input_image_loader:image"
|
| 20 |
+
batch_size: "latent_source:amount"
|
core/pipelines/workflow_recipes/_partials/input/inpaint.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
inpaint_loader:
|
| 3 |
+
class_type: LoadImage
|
| 4 |
+
title: "Load Inpaint Image+Mask"
|
| 5 |
+
vae_encode:
|
| 6 |
+
class_type: VAEEncodeForInpaint
|
| 7 |
+
title: "VAE Encode (for Inpainting)"
|
| 8 |
+
latent_source:
|
| 9 |
+
class_type: RepeatLatentBatch
|
| 10 |
+
title: "Repeat Latent Batch"
|
| 11 |
+
|
| 12 |
+
connections:
|
| 13 |
+
- from: "inpaint_loader:0"
|
| 14 |
+
to: "vae_encode:pixels"
|
| 15 |
+
- from: "inpaint_loader:1"
|
| 16 |
+
to: "vae_encode:mask"
|
| 17 |
+
- from: "vae_encode:0"
|
| 18 |
+
to: "latent_source:samples"
|
| 19 |
+
|
| 20 |
+
ui_map:
|
| 21 |
+
input_image: "inpaint_loader:image"
|
| 22 |
+
batch_size: "latent_source:amount"
|
| 23 |
+
grow_mask_by: "vae_encode:grow_mask_by"
|
core/pipelines/workflow_recipes/_partials/input/outpaint.yaml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
input_image_loader:
|
| 3 |
+
class_type: LoadImage
|
| 4 |
+
title: "Load Image for Outpaint"
|
| 5 |
+
scale_image:
|
| 6 |
+
class_type: ImageScaleToTotalPixels
|
| 7 |
+
title: "Scale Image to Total Pixels"
|
| 8 |
+
params:
|
| 9 |
+
upscale_method: "nearest-exact"
|
| 10 |
+
pad_image:
|
| 11 |
+
class_type: ImagePadForOutpaint
|
| 12 |
+
title: "Pad Image for Outpainting"
|
| 13 |
+
vae_encode:
|
| 14 |
+
class_type: VAEEncodeForInpaint
|
| 15 |
+
title: "VAE Encode (for Inpainting)"
|
| 16 |
+
latent_source:
|
| 17 |
+
class_type: RepeatLatentBatch
|
| 18 |
+
title: "Repeat Latent Batch"
|
| 19 |
+
|
| 20 |
+
connections:
|
| 21 |
+
- from: "input_image_loader:0"
|
| 22 |
+
to: "scale_image:image"
|
| 23 |
+
- from: "scale_image:0"
|
| 24 |
+
to: "pad_image:image"
|
| 25 |
+
- from: "pad_image:0"
|
| 26 |
+
to: "vae_encode:pixels"
|
| 27 |
+
- from: "pad_image:1"
|
| 28 |
+
to: "vae_encode:mask"
|
| 29 |
+
- from: "vae_encode:0"
|
| 30 |
+
to: "latent_source:samples"
|
| 31 |
+
|
| 32 |
+
ui_map:
|
| 33 |
+
input_image: "input_image_loader:image"
|
| 34 |
+
megapixels: "scale_image:megapixels"
|
| 35 |
+
left: "pad_image:left"
|
| 36 |
+
top: "pad_image:top"
|
| 37 |
+
right: "pad_image:right"
|
| 38 |
+
bottom: "pad_image:bottom"
|
| 39 |
+
feathering: "pad_image:feathering"
|
| 40 |
+
grow_mask_by: "vae_encode:grow_mask_by"
|
| 41 |
+
batch_size: "latent_source:amount"
|
core/pipelines/workflow_recipes/_partials/input/txt2img.yaml
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
imports:
|
| 2 |
+
- "txt2img_{{ latent_type }}.yaml"
|
core/pipelines/workflow_recipes/_partials/input/txt2img_chroma_radiance_latent.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
latent_source:
|
| 3 |
+
class_type: "EmptyChromaRadianceLatentImage"
|
| 4 |
+
title: "EmptyChromaRadianceLatentImage"
|
| 5 |
+
|
| 6 |
+
connections: []
|
| 7 |
+
|
| 8 |
+
ui_map:
|
| 9 |
+
width: "latent_source:width"
|
| 10 |
+
height: "latent_source:height"
|
| 11 |
+
batch_size: "latent_source:batch_size"
|
core/pipelines/workflow_recipes/_partials/input/txt2img_flux2_latent.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
latent_source:
|
| 3 |
+
class_type: "EmptyFlux2LatentImage"
|
| 4 |
+
title: "Empty Flux 2 Latent"
|
| 5 |
+
|
| 6 |
+
connections: []
|
| 7 |
+
|
| 8 |
+
ui_map:
|
| 9 |
+
width: "latent_source:width"
|
| 10 |
+
height: "latent_source:height"
|
| 11 |
+
batch_size: "latent_source:batch_size"
|
core/pipelines/workflow_recipes/_partials/input/txt2img_hidream_o1_latent.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
latent_source:
|
| 3 |
+
class_type: "EmptyHiDreamO1LatentImage"
|
| 4 |
+
title: "Empty HiDream-O1 Latent Image"
|
| 5 |
+
|
| 6 |
+
connections: []
|
| 7 |
+
|
| 8 |
+
ui_map:
|
| 9 |
+
width: "latent_source:width"
|
| 10 |
+
height: "latent_source:height"
|
| 11 |
+
batch_size: "latent_source:batch_size"
|
core/pipelines/workflow_recipes/_partials/input/txt2img_hunyuan_latent.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
latent_source:
|
| 3 |
+
class_type: "EmptyHunyuanImageLatent"
|
| 4 |
+
title: "EmptyHunyuanImageLatent"
|
| 5 |
+
|
| 6 |
+
connections: []
|
| 7 |
+
|
| 8 |
+
ui_map:
|
| 9 |
+
width: "latent_source:width"
|
| 10 |
+
height: "latent_source:height"
|
| 11 |
+
batch_size: "latent_source:batch_size"
|
core/pipelines/workflow_recipes/_partials/input/txt2img_latent.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
latent_source:
|
| 3 |
+
class_type: "{{ latent_generator_template }}"
|
| 4 |
+
title: "Empty Latent Image"
|
| 5 |
+
|
| 6 |
+
connections: []
|
| 7 |
+
|
| 8 |
+
ui_map:
|
| 9 |
+
width: "latent_source:width"
|
| 10 |
+
height: "latent_source:height"
|
| 11 |
+
batch_size: "latent_source:batch_size"
|
core/pipelines/workflow_recipes/_partials/input/txt2img_none.yaml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes: {}
|
| 2 |
+
|
| 3 |
+
connections: []
|
| 4 |
+
|
| 5 |
+
ui_map: {}
|
core/pipelines/workflow_recipes/_partials/input/txt2img_sd3_latent.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
latent_source:
|
| 3 |
+
class_type: "EmptySD3LatentImage"
|
| 4 |
+
title: "EmptySD3LatentImage"
|
| 5 |
+
|
| 6 |
+
connections: []
|
| 7 |
+
|
| 8 |
+
ui_map:
|
| 9 |
+
width: "latent_source:width"
|
| 10 |
+
height: "latent_source:height"
|
| 11 |
+
batch_size: "latent_source:batch_size"
|