Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no timm despite pip install #186

Closed
j2l opened this issue Sep 14, 2022 · 2 comments
Closed

no timm despite pip install #186

j2l opened this issue Sep 14, 2022 · 2 comments

Comments

@j2l
Copy link

j2l commented Sep 14, 2022

Hello,
In my dedicated python environment, I tried with latest timm and forced 0.4.5 without luck:

pip install timm==0.4.5
Defaulting to user installation because normal site-packages is not writeable
Collecting timm==0.4.5
  Downloading timm-0.4.5-py3-none-any.whl (287 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 287.4/287.4 kB 2.8 MB/s eta 0:00:00
Requirement already satisfied: torch>=1.4 in /home/pm/.local/lib/python3.10/site-packages (from timm==0.4.5) (1.12.1)
Requirement already satisfied: torchvision in /home/pm/.local/lib/python3.10/site-packages (from timm==0.4.5) (0.13.1)
Requirement already satisfied: typing-extensions in /home/pm/.local/lib/python3.10/site-packages (from torch>=1.4->timm==0.4.5) (4.3.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/lib/python3/dist-packages (from torchvision->timm==0.4.5) (9.0.1)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from torchvision->timm==0.4.5) (1.21.5)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from torchvision->timm==0.4.5) (2.25.1)
Installing collected packages: timm
Successfully installed timm-0.4.5
(midas) pm@pop-os:~/Documents/github$ python run.py --model_type dpt_large
Traceback (most recent call last):
  File "run.py", line 11, in <module>
    from midas.dpt_depth import DPTDepthModel
  File "/home/pm/Documents/github/midas/dpt_depth.py", line 6, in <module>
    from .blocks import (
  File "/home/pm/Documents/github/midas/blocks.py", line 4, in <module>
    from .vit import (
  File "/home/pm/Documents/github/midas/vit.py", line 3, in <module>
    import timm
ModuleNotFoundError: No module named 'timm'

Any idea?

@NielsRogge
Copy link

For easy inference see #259

@j2l
Copy link
Author

j2l commented Dec 22, 2023

Thanhks @NielsRogge I forgot about this ticket (sept 22).

@j2l j2l closed this as completed Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants