From e2d7b514e03ba121ff16eae7aae6d29b8c084598 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:15:25 +1100 Subject: [PATCH] tidy: correct attributions for controlnet processors --- invokeai/backend/image_util/canny.py | 2 +- invokeai/backend/image_util/hed.py | 2 +- invokeai/backend/image_util/util.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/invokeai/backend/image_util/canny.py b/invokeai/backend/image_util/canny.py index e0067bd7fd..87219a9356 100644 --- a/invokeai/backend/image_util/canny.py +++ b/invokeai/backend/image_util/canny.py @@ -14,7 +14,7 @@ def get_canny_edges( ) -> Image.Image: """Returns the edges of an image using the Canny edge detection algorithm. - This function is adapted from https://github.com/lllyasviel/ControlNet. + Adapted from https://github.com/huggingface/controlnet_aux (Apache-2.0 license). Args: image: The input image. diff --git a/invokeai/backend/image_util/hed.py b/invokeai/backend/image_util/hed.py index 36b07d43ed..38ad424b48 100644 --- a/invokeai/backend/image_util/hed.py +++ b/invokeai/backend/image_util/hed.py @@ -1,4 +1,4 @@ -"""Adapted from https://github.com/lllyasviel/ControlNet (Apache-2.0 license).""" +"""Adapted from https://github.com/huggingface/controlnet_aux (Apache-2.0 license).""" import cv2 import numpy as np diff --git a/invokeai/backend/image_util/util.py b/invokeai/backend/image_util/util.py index 067adfa15e..6a403efe55 100644 --- a/invokeai/backend/image_util/util.py +++ b/invokeai/backend/image_util/util.py @@ -100,7 +100,7 @@ def normalize_image_channel_count(image: np.ndarray) -> np.ndarray: If the image has 1 channel, a third empty channel will be added. If the image has 4 channels, the alpha channel will be used to blend the image with a white background. - This function is adapted from https://github.com/lllyasviel/ControlNet. + Adapted from https://github.com/huggingface/controlnet_aux (Apache-2.0 license). Args: image: The input image. @@ -131,7 +131,7 @@ def normalize_image_channel_count(image: np.ndarray) -> np.ndarray: def fit_image_to_resolution(input_image: np.ndarray, resolution: int) -> np.ndarray: """Resizes an image, fitting it to the given resolution. - This function is adapted from https://github.com/lllyasviel/ControlNet. + Adapted from https://github.com/huggingface/controlnet_aux (Apache-2.0 license). Args: input_image: The input image. @@ -190,7 +190,7 @@ def safe_step(x: np.ndarray, step: int = 2) -> np.ndarray: I don't fully understand the purpose of this function, but it appears to be normalizing/quantizing the array. - This function is adapted from https://github.com/lllyasviel/ControlNet. + Adapted from https://github.com/huggingface/controlnet_aux (Apache-2.0 license). Args: x: The input array.