mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
Fixed skyreels gen bug
This commit is contained in:
parent
acc5ec9d9b
commit
b562190b93
@ -236,7 +236,7 @@ class DTT2V:
|
|||||||
if input_video != None:
|
if input_video != None:
|
||||||
_ , _ , height, width = input_video.shape
|
_ , _ , height, width = input_video.shape
|
||||||
elif image_start != None:
|
elif image_start != None:
|
||||||
image_start = image_start[0]
|
image_start = image_start
|
||||||
frame_width, frame_height = image_start.size
|
frame_width, frame_height = image_start.size
|
||||||
height, width = calculate_new_dimensions(height, width, frame_height, frame_width, fit_into_canvas)
|
height, width = calculate_new_dimensions(height, width, frame_height, frame_width, fit_into_canvas)
|
||||||
image_start = np.array(image_start.resize((width, height))).transpose(2, 0, 1)
|
image_start = np.array(image_start.resize((width, height))).transpose(2, 0, 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user