Skip to content

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

Description

@sanerone695

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'>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions