huggingface / huggingface/controlnet_aux

processor = Processor('depth_zoe'), processed_image = processor(init_image, to_pil=True) error

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

Description

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 [, ]

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.