Open AyaanShah2204 opened 11 months ago
Thank you, this would fix https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/319
@dwofk could you please merge this?
@thias15 These are quite necessary changes. Could you please merge this?
This change does not work with timm==0.6.12 installed on existing systems.
lllyasviel's fix works with both timm==0.6.12 and timm==0.9.5.
https://github.com/Mikubill/sd-webui-controlnet/pull/2001
(In MiDas setup, drop_path
is actually Identity()
, so there is no need to worry about drop_path1
or drop_path2
. )
@nagadomi I can change the PR to match lllyasviel's fix. I was under the assumption that this was the only issue preventing systems from updating to the latest timm.
@AyaanShah2204 I think that would be great to support both timm==0.6.12 and timm==0.9.5
Torch Compatibility
We're working with the latest nightly version of torch. They seem to have added type asserts to interpolate (this commit).
This causes a runtime error because the size we pass in is of type
numpy.int32
. A simple int-cast should fix this without any side effects.Timm compatibility
Blocks.drop_path()
was deprecated and replaced withBlocks.drop_path1()
andBlocks.drop_path2()
in this commit. This has been causing a runtime error referenced in this issue.This has affected things downstream in ZoeDepth and Auto1111's controlnet extension.