huggingface / controlnet_aux

Apache License 2.0
398 stars 86 forks source link

OpenCV cast types fix and unused variable fix in shuffle #36

Closed vlordier closed 1 year ago

vlordier commented 1 year ago

img unused variable here and casting type which (properly) fixes this one https://github.com/patrickvonplaten/controlnet_aux/pull/33

patrickvonplaten commented 1 year ago

Hey @vlordier,

Could you check if the PR as is now would work for you?

vlordier commented 1 year ago

with the revert of the float cast, still getting

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<cv::UMat> for argument 'src'

line 159 here

Note: the context is cuda autocast