fixup the rest of merge errors
parent
cad7e49044
commit
c9904db37c
|
|
@ -174,8 +174,7 @@ def generate(args, anim_args, loop_args, root, frame = 0, return_sample=False, s
|
|||
mask = prepare_mask(mask_image,
|
||||
(args.W, args.H),
|
||||
args.mask_contrast_adjust,
|
||||
args.mask_brightness_adjust,
|
||||
invert_mask=False)
|
||||
args.mask_brightness_adjust)
|
||||
|
||||
# HACK: this is a hacky check to make the mask work with the new inpainting code
|
||||
crop_region = masking.get_crop_region(np.array(mask_image), args.full_res_mask_padding)
|
||||
|
|
|
|||
|
|
@ -220,9 +220,9 @@ def render_animation(args, anim_args, video_args, parseq_args, loop_args, animat
|
|||
depth = depth_model.predict(turbo_next_image, anim_args, root.half_precision)
|
||||
|
||||
if advance_prev:
|
||||
turbo_prev_image, _ = anim_frame_warp(turbo_prev_image, args, anim_args, keys, tween_frame_idx, depth_model, depth=depth, device=root.device, half_precision=root.half_precision)
|
||||
turbo_prev_image, _, _ = anim_frame_warp(turbo_prev_image, args, anim_args, keys, tween_frame_idx, depth_model, depth=depth, device=root.device, half_precision=root.half_precision)
|
||||
if advance_next:
|
||||
turbo_next_image, _ = anim_frame_warp(turbo_next_image, args, anim_args, keys, tween_frame_idx, depth_model, depth=depth, device=root.device, half_precision=root.half_precision)
|
||||
turbo_next_image, _, _ = anim_frame_warp(turbo_next_image, args, anim_args, keys, tween_frame_idx, depth_model, depth=depth, device=root.device, half_precision=root.half_precision)
|
||||
|
||||
# hybrid video motion - warps turbo_prev_image or turbo_next_image to match motion
|
||||
if tween_frame_idx > 0:
|
||||
|
|
|
|||
Loading…
Reference in New Issue