Spaces:
Runtime error
Runtime error
yuvalalaluf
commited on
Commit
β’
fa668a3
1
Parent(s):
d73372e
Update utils/image_utils.py
Browse files- utils/image_utils.py +0 -3
utils/image_utils.py
CHANGED
@@ -10,9 +10,6 @@ from config import RunConfig
|
|
10 |
def load_images(cfg: RunConfig, save_path: Optional[pathlib.Path] = None) -> Tuple[Image.Image, Image.Image]:
|
11 |
image_style = load_size(cfg.app_image_path)
|
12 |
image_struct = load_size(cfg.struct_image_path)
|
13 |
-
if save_path is not None:
|
14 |
-
Image.fromarray(image_style).save(save_path / f"in_style.png")
|
15 |
-
Image.fromarray(image_struct).save(save_path / f"in_struct.png")
|
16 |
return image_style, image_struct
|
17 |
|
18 |
|
|
|
10 |
def load_images(cfg: RunConfig, save_path: Optional[pathlib.Path] = None) -> Tuple[Image.Image, Image.Image]:
|
11 |
image_style = load_size(cfg.app_image_path)
|
12 |
image_struct = load_size(cfg.struct_image_path)
|
|
|
|
|
|
|
13 |
return image_style, image_struct
|
14 |
|
15 |
|