fix width for square

pull/16/head
GeorgLegato 2023-04-15 20:38:04 +02:00
parent 3b6936c8dc
commit 7ef489adc9
1 changed files with 3 additions and 1 deletions

View File

@ -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 = []