Git Product home page Git Product logo

Comments (4)

Christoph9402 avatar Christoph9402 commented on May 21, 2024 2

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

from dpt.

Christoph9402 avatar Christoph9402 commented on May 21, 2024

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

from dpt.

ranftlr avatar ranftlr commented on May 21, 2024

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

from dpt.

Hyyzhangrui avatar Hyyzhangrui commented on May 21, 2024

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

from dpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.