Comments (4)
Update: uninstalling timm and reinstalling with pip solved the issue for me. Now I have version 0.4.5 installed.
from dpt.
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.
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.
as Christoph9402 said, update the timm's version to 0.4.5 ,good working!
from dpt.
Related Issues (20)
- RuntimeError: view size is not compatible with input tensor's size HOT 2
- Evaluation for MiDaS v21 HOT 1
- Question about the pos_embed
- Question about finetuning HOT 1
- kitti gt interpolated for training? HOT 1
- Running on large images
- Depth output unit HOT 2
- Add pillow in requirements.txt HOT 1
- Questions about the BlendedMVS datasets used in DPT model
- confidence of the prediction result
- Trying to understand the Dense Prediction Transformer architecture
- Metric Depth from Kitti model HOT 1
- Errors while tracing dpt_beit_large_384.pt
- what is the output metric of the model ? HOT 1
- Thanks and is there a plan to release the dpt-base pretrained model?
- Semantic segmentation inference
- About the datasets for metric depth estimation
- Obataining negative depth values
- DPT_Large Artifacts
- KITTI link is broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpt.