import requests
from PIL import Image
from io import BytesIO
from controlnet_aux.processor import Processor
url = "https://huggingface.co/lllyasviel/sd-controlnet-openpose/resolve/main/images/pose.png"
response = requests.get(url)
img = Image.open(BytesIO(response.content)).convert("RGB")
processor_id = 'depth_zoe'
processor = Processor(processor_id)
processed_image = processor(img, to_pil=True)
TypeError: expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [<class 'numpy.int64'>, <class 'numpy.int64'>]
import requests
from PIL import Image
from io import BytesIO
from controlnet_aux.processor import Processor
url = "https://huggingface.co/lllyasviel/sd-controlnet-openpose/resolve/main/images/pose.png"
response = requests.get(url)
img = Image.open(BytesIO(response.content)).convert("RGB")
processor_id = 'depth_zoe'
processor = Processor(processor_id)
processed_image = processor(img, to_pil=True)
TypeError: expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [<class 'numpy.int64'>, <class 'numpy.int64'>]