Open WorldofDepth opened 8 months ago
It's hard to say for sure, but I would guess this has to do with the libraries being updated, possibly by some other project. Based on the pathing of the libraries in the error message (e.g. /usr/local/lib/python3.10/dist-packages/...
) all of the libraries are installed in the base system copy of python, which means they can get modified by system updates (since the operating system also uses this copy of python) and potentially other projects which try to use the same python.
The general solution for this is to use virtual environments, either through python itself (using venv) or something like conda. These act like dedicated sandboxes where you'd install all of the libraries for a single project in one place, which only gets used by that one project, and therefore won't be affected by updates to other projects (which should have their own separate environments).
(unrelated) Also, since you're using beit, I figured I'd mention that there there are improved models available that might be worth checking out. One is called Depth-Anything (specifically the vit-large model) and another much higher quality (but very slow to run) model called Marigold.
Hi, until recently I could run this via a Google Colab notebook (with timm 0.6.13 and torch 2.0.1 to avoid other errors), but today running the following cell:
Produces the error output below:
Through experimentation, I find that deleting references to ‘torch._custom_ops' in the _meta_registrations.py file allows MiDaS to run, but obviously this is not the most correct fix. Any advice for a better solution? Thank you!