Update block.py
Browse files
block.py
CHANGED
@@ -8,7 +8,6 @@ from diffusers.modular_pipelines import (
|
|
8 |
from diffusers.utils import load_image
|
9 |
from PIL import Image
|
10 |
from typing import Union, Tuple
|
11 |
-
import numpy as np
|
12 |
|
13 |
# copied from https://github.com/Wan-Video/Wan2.2/blob/388807310646ed5f318a99f8e8d9ad28c5b65373/wan/utils/utils.py#L136
|
14 |
def best_output_size(w, h, dw, dh, expected_area):
|
|
|
8 |
from diffusers.utils import load_image
|
9 |
from PIL import Image
|
10 |
from typing import Union, Tuple
|
|
|
11 |
|
12 |
# copied from https://github.com/Wan-Video/Wan2.2/blob/388807310646ed5f318a99f8e8d9ad28c5b65373/wan/utils/utils.py#L136
|
13 |
def best_output_size(w, h, dw, dh, expected_area):
|