Looking for the Windows Build? Get it here: https://github.com/n8ventures/TilingZoeDepth_GUI/releases/tag/3.1.0
MacOS Build is here!
There was some loopholes I had to do to make it work with MPS (Metal Performance Shaders) and make it standalone-ish.
Patch notes remains the same as the previous build but I'll list down what's special with this build.
(Patch notes: https://github.com/n8ventures/TilingZoeDepth_GUI/releases/tag/3.1.0)
What's special?
-
First, I had to fork my own copy of ZoeDepth and tweak one line of code:
isl-org/ZoeDepth@main...n8ventures:ZoeDepth:main
- Apparently, bicubic isn't ready for MPS yet, so I dug around and found this workaround instead: kijai/ComfyUI-SUPIR#47 (comment)
-
Secondly, for building this app, I kept getting this error when testing the build:
if torch._C._dispatch_has_kernel_for_dispatch_key(self.qualname, "Meta"):
RuntimeError: operator torchvision::nms does not exist
It looks like pyTorch isn't being nice to py2app (or vice-versa) so I had to just copy-paste the torch folder from site-packages and replace the one in the .app. (See this file: osx-build.py)
⚠️ IMPORTANT
If you encounter anything like:
"Tiled ZoeDepth GUI.app is damaged and can’t be opened"
"Tiled ZoeDepth GUI.app cannot be opened because the developer cannot be verified"
""Tiled ZoeDepth GUI" can't be opened because Apple cannot check it for malicious software."
Just copy this code, and then paste and run this on your Terminal:
sudo xattr -dr com.apple.quarantine "/Applications/Tiled ZoeDepth GUI.app"
OR
Go to your /Applications
folder, then right-click/⌃CTRL+Click the app and press 'Open', a pop-up will appear, then click 'Open' again.
More info here: https://support.apple.com/en-ph/guide/mac-help/mchleab3a043/mac
Full Changelog: 3.0.2...3.1.0-MacOS