Releases: n8ventures/TilingZoeDepth_GUI
Metal Ready! MacOS Build is here!
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
3.1.0
Looking for the MacOS Build? Get it here: https://github.com/n8ventures/TilingZoeDepth_GUI/releases/tag/3.1.0-MacOS
Patchnotes
New
- Batch Mode
- Useful for importing a lot of images and automatically saves the final generated images right next to the source image.
- 32-Bit Mode (code by @cmore86) - More info below
- More detail and a bit more detailed guestimation.
You'll see both of these options here:
Improvements
- Cleaned up some code.
About 32-Bit Mode
Sometimes, it's kinda a hit or miss on 32Bit. But it does provide more detail in most cases. If it does miss, you can always try to patch it up on your own via Photoshop/Gimp.
Samples:
Model N was used in this scenario.
Original Image 1
Left Image | Right Image | Bit Mode |
---|---|---|
Tiled | Non-Tiled | 16-Bit (Inverted) |
Tiled | Non-Tiled | 32-Bit |
Original Image 2
Note: The final image is not like 16bit, you'll have to invert it otherwise, as seen on the sample images above where I had to invert the 16-bit versions
Full Changelog: 3.0.2...3.1.0
3.0.2 - Git me out of here
a few teaks and there to use for non-coder amigos
Patchnotes
Fixes
- Removed
from git import Repo
module as it requires Git installed and replaced it with just a download-and-unzip function. - Fixed an assertion error if the image has more than 3 channels.
- Basically, if
image != RGB
, PIL will convert it to RGB.
- Basically, if
- Updated some text.
Improvements
- Instead of PyTorch downloading the models, implemented a kinda complicated download function that integrates with the progress bar.
- PyTorch will still download MiDaS, I just didn't bother adding it since it's not that big.
- Added a model label on the window.
- Gotta know which model in use so that we can close the app and pick the right one. ha ha
Full Changelog: 3.0.1...3.0.2
3.0.1
3.0.1 - no more console mode!
Patchnotes
Fixes
- Fixed unhandled exception when running the program built with
console=False
.- At first, I thought torch only had stderr and stdout. Now, the simple way was to bypass that was with
sys.stderr = open(os.devnull, 'w')
. Of course, it still crashed. So, to debug I hadsys.stderr
write astderr.log
instead. Upon further investigation, wand usessys.__stdout__
andsys.__stderr__
. So yeah, took me 3 hours to figure that out. 😃
- At first, I thought torch only had stderr and stdout. Now, the simple way was to bypass that was with
Full Changelog: 3.0.0...3.0.1
Local GUI Version Released!
This was built as an exercise for myself to ease building depth maps for AE work. Feel free to make use for it yourself.
- Supports drag and drop
- Supports Multiple Image files (Batch mode)
- Saves both the original depth map and Tiled Depth Map.
Known Issues
- pythonw does not like this script at all. In the meantime, this release has console on.