log pipeline stage count, add outpaint example
This commit is contained in:
parent
a4d3f18a48
commit
03d88dff5f
|
@ -594,6 +594,8 @@ def chain():
|
|||
|
||||
pipeline.append((callback, stage, kwargs))
|
||||
|
||||
logger.info('running chain pipeline with %s stages', len(pipeline.stages))
|
||||
|
||||
# build and run chain pipeline
|
||||
fake_source = Image.new('RGB', (1, 1))
|
||||
executor.submit_stored(output, pipeline, context,
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue