mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy: "fit_image_to_resolution" -> "resize_image_to_resolution"
This commit is contained in:
committed by
Kent Keirsey
parent
64fb15e117
commit
a6283b9fb6
@ -128,7 +128,7 @@ def normalize_image_channel_count(image: np.ndarray) -> np.ndarray:
|
||||
raise ValueError("Invalid number of channels.")
|
||||
|
||||
|
||||
def fit_image_to_resolution(input_image: np.ndarray, resolution: int) -> np.ndarray:
|
||||
def resize_image_to_resolution(input_image: np.ndarray, resolution: int) -> np.ndarray:
|
||||
"""Resizes an image, fitting it to the given resolution.
|
||||
|
||||
Adapted from https://github.com/huggingface/controlnet_aux (Apache-2.0 license).
|
||||
|
Reference in New Issue
Block a user