diff --git a/scripts/deforum_helpers/deforum_controlnet.py b/scripts/deforum_helpers/deforum_controlnet.py index cef20cbc8..62579fa5d 100644 --- a/scripts/deforum_helpers/deforum_controlnet.py +++ b/scripts/deforum_helpers/deforum_controlnet.py @@ -246,7 +246,7 @@ def read_cn_data(cn_idx): cn_maskframes = os.path.join(args.outdir, f'controlnet_{cn_idx}_maskframes') # set mask frames folder path if os.path.exists(cn_maskframes): if count_files_in_folder(cn_maskframes) == 1: - cn_mask_frame_path = os.path.join(cn_inputframes, "000000000.jpg") + cn_mask_frame_path = os.path.join(cn_maskframes, "000000000.jpg") print(f'Reading ControlNet *static* mask frame at {cn_mask_frame_path}') else: cn_mask_frame_path = os.path.join(args.outdir, f'controlnet_{cn_idx}_maskframes', f"{frame_idx:09}.jpg") diff --git a/scripts/deforum_helpers/webui_sd_pipeline.py b/scripts/deforum_helpers/webui_sd_pipeline.py index 3b3b269cf..7a3bd94a3 100644 --- a/scripts/deforum_helpers/webui_sd_pipeline.py +++ b/scripts/deforum_helpers/webui_sd_pipeline.py @@ -36,7 +36,6 @@ def get_webui_sd_pipeline(args, root): p.subseed_strength = root.subseed_strength p.seed_resize_from_w = args.seed_resize_from_w p.seed_resize_from_h = args.seed_resize_from_h - p.fill = args.fill p.batch_size = 1 # b.size 1 as this is DEFORUM :) p.seed = args.seed p.do_not_save_samples = True # Setting this to False will trigger webui's saving mechanism - and we will end up with duplicated files, and another folder within our destination folder - big no no.