INNER CODE UNIT · Python
normal_image
Boese0601/MagicDance · model_lib/ControlNet/annotator/midas/__init__.py:34
normal_image = (normal * 127.5 + 127.5).clip(0, 255).astype(np.uint8)
return depth_image, normal_image
INNER CODE UNIT · Python
Boese0601/MagicDance · model_lib/ControlNet/annotator/midas/__init__.py:34
normal_image = (normal * 127.5 + 127.5).clip(0, 255).astype(np.uint8)
return depth_image, normal_image