The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
create output dir if none is present
BazettFraga642516a3a62b
diff --git a/nodes.py b/nodes.pyindex 23b398290..12f4b6391 100644--- a/nodes.py+++ b/nodes.py@@ -493,6 +493,9 @@ class SaveImage:counter = max(filter(lambda a: a[1][:-1] == filename_prefix and a[1][-1] == "_", map(map_filename, os.listdir(self.output_dir))))[0] + 1except ValueError:counter = 1+ except FileNotFoundError:+ os.mkdir(self.output_dir)+ counter = 1for image in images:i = 255. * image.cpu().numpy()img = Image.fromarray(i.astype(np.uint8))