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

Unknown model (vit_base_resnet50_384) #14

Closed
EkjotSingh898 opened this issue May 1, 2021 · 4 comments
Closed

Unknown model (vit_base_resnet50_384) #14

EkjotSingh898 opened this issue May 1, 2021 · 4 comments

Comments

@EkjotSingh898
Copy link

Hi authors,
Thanks for your code,
While running run_monodepth.py , I got this error "Unknown model (vit_base_resnet50_384)". I'm using conda environment and installed timm using pip. and the version of timm I'm using is 0.4.5.

@Christoph9402
Copy link

Christoph9402 commented May 2, 2021

Hi, I am having the same problem. Did you find a solution yet? Here is the output in the console:

(studienarbeit_env) C:\Users\Chris\Documents\Uni\Studienarbeit\DPT>python run_monodepth.py -t dpt_hybrid_kitti
initialize
device: cuda
Traceback (most recent call last):
  File "run_monodepth.py", line 240, in <module>
    args.optimize,
  File "run_monodepth.py", line 64, in run
    enable_attention_hooks=args.vis,
  File "C:\Users\Chris\Documents\Uni\Studienarbeit\DPT\dpt\models.py", line 109, in __init__
    super().__init__(head, **kwargs)
  File "C:\Users\Chris\Documents\Uni\Studienarbeit\DPT\dpt\models.py", line 58, in __init__
    enable_attention_hooks=enable_attention_hooks,
  File "C:\Users\Chris\Documents\Uni\Studienarbeit\DPT\dpt\blocks.py", line 40, in _make_encoder
    enable_attention_hooks=enable_attention_hooks,
  File "C:\Users\Chris\Documents\Uni\Studienarbeit\DPT\dpt\vit.py", line 501, in _make_pretrained_vitb_rn50_384
    model = timm.create_model("vit_base_resnet50_384", pretrained=pretrained)
  File "C:\Users\Chris\anaconda3\envs\studienarbeit_env\lib\site-packages\timm-0.1.20-py3.6.egg\timm\models\factory.py", line 54, in create_model
    raise RuntimeError('Unknown model (%s)' % model_name)
RuntimeError: Unknown model (vit_base_resnet50_384)

Python Version is 3.6.13, Timm version 0.1.20

@Christoph9402
Copy link

Update: uninstalling timm and reinstalling with pip solved the issue for me. Now I have version 0.4.5 installed.

@ranftlr
Copy link
Contributor

ranftlr commented May 3, 2021

Yes, likely a version conflict. You could try installing into a fresh conda environment:

conda create --name dpt python=3.7
conda activate dpt
pip install torch torchvision opencv-python timm

@ranftlr ranftlr closed this as completed Jun 9, 2021
scyonggg pushed a commit to scyonggg/ICEIC2023 that referenced this issue Oct 17, 2022
@Hyyzhangrui
Copy link

as Christoph9402 said, update the timm's version to 0.4.5 ,good working!

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

4 participants