From ec7c4fe58aa49fb899fcb2da38e3afa49014c4e5 Mon Sep 17 00:00:00 2001 From: papuSpartan Date: Sat, 25 May 2024 00:29:56 -0500 Subject: [PATCH] skip grid if only one image returned --- scripts/distributed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/distributed.py b/scripts/distributed.py index 41422c1..ef1cc0b 100644 --- a/scripts/distributed.py +++ b/scripts/distributed.py @@ -197,7 +197,7 @@ class DistributedScript(scripts.Script): return # generate and inject grid - if opts.return_grid: + if opts.return_grid and len(processed.images) > 1: grid = image_grid(processed.images, len(processed.images)) processed_inject_image( image=grid,