This commit is contained in:
lllyasviel
2024-01-29 08:03:03 -08:00
parent 18254a0984
commit c071e4494f
4 changed files with 44 additions and 5 deletions

View File

@@ -78,6 +78,9 @@ class ControlNetExampleForge(scripts.Script):
input_image = cv2.resize(input_image, (width, height))
canny_image = cv2.cvtColor(cv2.Canny(input_image, 100, 200), cv2.COLOR_GRAY2RGB)
from modules_forge.shared import shared_preprocessors
a = 0
# # Or you can get a list of preprocessors in this way
# from modules_forge.shared import shared_preprocessors
# canny_preprocessor = shared_preprocessors['canny']