fix width for square
parent
3b6936c8dc
commit
7ef489adc9
|
|
@ -7,6 +7,7 @@ sys.path.extend(basedir + "/extensions/infinite-zoom-automatic1111-webui/")
|
|||
import numpy as np
|
||||
import gradio as gr
|
||||
from PIL import Image
|
||||
import math
|
||||
|
||||
from iz_helpers import shrink_and_paste_on_blank, write_video
|
||||
from webui import wrap_gradio_gpu_call
|
||||
|
|
@ -140,7 +141,8 @@ def create_zoom(
|
|||
height,
|
||||
)
|
||||
current_image = processed.images[0]
|
||||
mask_width = 128
|
||||
|
||||
mask_width = math.trunc(width/4) # was initially 512px => 128px
|
||||
num_interpol_frames = round(video_frame_rate * zoom_speed)
|
||||
|
||||
all_frames = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue