Commit c9836279 authored by CookieHCl's avatar CookieHCl Committed by AUTOMATIC1111
Browse files

Only make output dir when creating output

parent 91235d80
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -334,12 +334,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
    seed = get_fixed_seed(p.seed)
    subseed = get_fixed_seed(p.subseed)

    if p.outpath_samples is not None:
        os.makedirs(p.outpath_samples, exist_ok=True)

    if p.outpath_grids is not None:
        os.makedirs(p.outpath_grids, exist_ok=True)

    modules.sd_hijack.model_hijack.apply_circular(p.tiling)
    modules.sd_hijack.model_hijack.clear_comments()

+4 −1
Original line number Diff line number Diff line
@@ -1394,7 +1394,10 @@ def create_ui(wrap_gradio_gpu_call):
    component_dict = {}

    def open_folder(f):
        if not os.path.isdir(f):
        if not os.path.exists(f):
            print(f"{f} doesn't exist. After you create an image, the folder will be created.")
            return
        elif not os.path.isdir(f):
            print(f"""
WARNING
An open_folder request was made with an argument that is not a folder.