lllyasviel / ControlNet-v1-1-nightly

Nightly release of ControlNet 1.1
4.48k stars 364 forks source link

openpose detected_map using INTER_LINEAR to resize? #72

Closed ChengBinJin closed 1 year ago

ChengBinJin commented 1 year ago

@Mikubill Hi, when I read gradio_openpose.py I found the detected_map of the OpenPose using cv2.INTER_LINEAR. I think it should be used cv2.INTER_NEAREST to keep the color of the pose image as the ControlNet v1.

https://github.com/lllyasviel/ControlNet-v1-1-nightly/blob/78631203a6739cde76a728062b475549a24f94c6/gradio_openpose.py#L47

lllyasviel commented 1 year ago

oh nice catch. will fix then