huggingface / huggingface/controlnet_aux

Overload resolution failed

Open
#9 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
497
Forks
104
PR merge metrics
No merged PRs in 30d

Description

No matter what I've tried, openpose not working. Other control nets working but not pose.

```

Traceback (most recent call last):
File "/opt/ckpt/handler.py", line 221, in
result = handler({
File "/opt/ckpt/handler.py", line 165, in handler
output = get_stable_diffusion_pipeline(
File "/opt/ckpt/handler.py", line 85, in get_stable_diffusion_pipeline
image = openpose(image)
File "/opt/conda/lib/python3.10/site-packages/controlnet_aux/open_pose/__init__.py", line 51, in __call__
candidate, subset = self.body_estimation(input_image)
File "/opt/conda/lib/python3.10/site-packages/controlnet_aux/open_pose/body.py", line 52, in __call__
heatmap = cv2.resize(heatmap, (0, 0), fx=stride, fy=stride, interpolation=cv2.INTER_CUBIC)
cv2.error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'resize'
> Overload resolution failed:
> - src data type = 23 is not supported
> - Expected Ptr for argument 'src'
```

![image](https://user-images.githubusercontent.com/13220891/227095873-47d170b1-55f6-4efa-8a35-cc043899892f.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.