video mask in deforum ext. doesn't work #47017
Unanswered
mindmaze23
asked this question in
Profile
Replies: 1 comment
-
Hi, in the file "stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum_helpers\render.py" in line 376, I replace : if args.use_mask:
if not using_vid_init:
args.mask_image = compose_mask_with_check(root, args, mask_seq, mask_vals, args.init_sample) if args.init_sample is not None else None # we need it only after the first frame anyway by this : if args.use_mask:
if not using_vid_init:
args.mask_image = compose_mask_with_check(root, args, mask_seq, mask_vals, args.init_sample) if args.init_sample is not None else None # we need it only after the first frame anyway
else:
image_frame, _ = load_img(args.init_image, shape=(args.W, args.H), use_alpha_as_mask=args.use_alpha_as_mask)
args.mask_image = compose_mask_with_check(root, args, mask_seq, mask_vals, np.array(image_frame)) I also have to put a black image in the "init>mask init>mask file" parameter otherwise it combines mask with the default image. it works for me regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Hi
Trying to use video mask in deforum extention.
thx
O
Beta Was this translation helpful? Give feedback.
All reactions