Stability-AI / StableSwarmUI

StableSwarmUI, A Modular Stable Diffusion Web-User-Interface, with an emphasis on making powertools easily accessible, high performance, and extensibility.
MIT License
4.59k stars 368 forks source link

New Grid Generator Exception #361

Closed MaideCa closed 5 months ago

MaideCa commented 5 months ago

A recent change to the Grid Extension broke the Just Images and Grid Image Output Type options.

I think we just need to add a missing CreateDirectory call above the WriteAllBytes call, but maybe there's a different place the folder was supposed to have been created?

This works for me:

if (!Directory.Exists(runner.BasePath))
{
    Directory.CreateDirectory(runner.BasePath);
}

See: https://github.com/Stability-AI/StableSwarmUI/commit/166fe548eeaf687ff38fd75f0e27162a2032a228#r142451172

mcmonkey4eva commented 5 months ago

Ohp, you're right, my bad, fixed