tidy: "fit_image_to_resolution" -> "resize_image_to_resolution"

This commit is contained in:
psychedelicious
2024-03-21 23:00:29 +11:00
committed by Kent Keirsey
parent 64fb15e117
commit a6283b9fb6
5 changed files with 13 additions and 13 deletions

View File

@ -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).