1
0
Fork 0

log pipeline stage count, add outpaint example

This commit is contained in:
Sean Sube 2023-01-28 23:50:41 -06:00
parent a4d3f18a48
commit 03d88dff5f
3 changed files with 28 additions and 0 deletions

View File

@ -594,6 +594,8 @@ def chain():
pipeline.append((callback, stage, kwargs)) pipeline.append((callback, stage, kwargs))
logger.info('running chain pipeline with %s stages', len(pipeline.stages))
# build and run chain pipeline # build and run chain pipeline
fake_source = Image.new('RGB', (1, 1)) fake_source = Image.new('RGB', (1, 1))
executor.submit_stored(output, pipeline, context, executor.submit_stored(output, pipeline, context,

View File

@ -0,0 +1,26 @@
{
"stages": [
{
"name": "start",
"type": "source-txt2img",
"params": {
"prompt": "a magical wizard"
}
},
{
"name": "expand",
"type": "upscale-outpaint",
"params": {
"border": 256,
"prompt": "a magical wizard in a robe fighting a dragon"
}
},
{
"name": "save-local",
"type": "persist-disk",
"params": {
"tile_size": "hd8k"
}
}
]
}