Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Conversation

@AyaanShah2204
Copy link

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 with Blocks.drop_path1() and Blocks.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.

@semjonsona
Copy link

Thank you, this would fix thygate/stable-diffusion-webui-depthmap-script#319

@dwofk could you please merge this?

@semjonsona
Copy link

@thias15 These are quite necessary changes. Could you please merge this?

semjonsona added a commit to thygate/stable-diffusion-webui-depthmap-script that referenced this pull request Aug 28, 2023
semjonsona added a commit to thygate/stable-diffusion-webui-depthmap-script that referenced this pull request Aug 29, 2023
@nagadomi
Copy link

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.
Mikubill/sd-webui-controlnet#2001
(In MiDas setup, drop_path is actually Identity(), so there is no need to worry about drop_path1 or drop_path2. )

@AyaanShah2204
Copy link
Author

@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.

@semjonsona
Copy link

@AyaanShah2204 I think that would be great to support both timm==0.6.12 and timm==0.9.5

garywang added a commit to PolyCam/MiDaS that referenced this pull request Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants