Skip to content

[bug][regression?]: Depth (Zoe) processor fails with TypeError #5083

Open
@keturn

Description

@keturn

Is there an existing issue for this?

  • I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

12GB

What version did you experience this issue on?

1c7ea57

What happened?

  • add t2i-adapter zoedepth-sdxl (but probably any adapter will do, as we don't get as far as running the adapter)
  • add reference image to adapter (1024px square)
  • choose processor: Depth (Zoe)

Traceback:

  File "site-packages/controlnet_aux/zoe/zoedepth/models/base_models/midas.py", line 263, in forward
    x = self.prep(x)
       ^^^^^^^^^^^^   
  File "site-packages/controlnet_aux/zoe/zoedepth/models/base_models/midas.py", line 187, in __call__
    return self.normalization(self.resizer(x))
                              ^^^^^^^^^^^^^^^
  File "site-packages/controlnet_aux/zoe/zoedepth/models/base_models/midas.py", line 174, in __call__
    return nn.functional.interpolate(x, (height, width), mode='bilinear', align_corners=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "site-packages/torch/nn/functional.py", line 3924, in interpolate
    raise TypeError(                                                                                                                                                        
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'>]

though this traceback says it is in resizer, it does not change when I set Resize Mode to Crop or Fill instead of Resize.

The Midas depth processor works without error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions