resize tiles before running refinement steps
This commit is contained in:
parent
66e938f9ab
commit
4ab1b6cc88
|
@ -87,7 +87,7 @@ def run_txt2img_pipeline(
|
|||
|
||||
for image, output in zip(result.images, outputs):
|
||||
if highres_scale > 1:
|
||||
def highres(tile: Image.Image, dims):
|
||||
# load img2img pipeline once
|
||||
highpipe = load_pipeline(
|
||||
server,
|
||||
OnnxStableDiffusionImg2ImgPipeline,
|
||||
|
@ -98,7 +98,9 @@ def run_txt2img_pipeline(
|
|||
inversions,
|
||||
loras,
|
||||
)
|
||||
progress = job.get_progress_callback()
|
||||
|
||||
def highres(tile: Image.Image, dims):
|
||||
tile = tile.resize((size.height, size.width))
|
||||
if params.lpw:
|
||||
logger.debug("using LPW pipeline for img2img")
|
||||
rng = torch.manual_seed(params.seed)
|
||||
|
|
Loading…
Reference in New Issue