Comments (4)
You might be using an incompatible version of PyTorch and/or Torchvision. What versions are you using? You can check with:
import torch
import torchvision
print(torch.__version__)
print(torchvision.__version__)
I tested it just now and I don't see the error with PyTorch 1.6.0 and Torchvision 0.7.0.
from midas.
just a confirmation, it is related to the torchvision version
conda had installed something below 0.3.0 for me
TypeError: init() got an unexpected keyword argument 'groups'
torchvision version was too low (need 0.3.0 or higher) as per
facebookresearch/WSL-Images#3
if using a conda virtual environment, I'd recommend upgrading via pip
pip3 install torchvision --upgrade
from midas.
Closing due to inactivity.
from midas.
running on Windows
initial state:
torch=1.7.1+cpu
torchvision=0.2.2
this line failed for me - no newer version found:
pip3 install torchvision --upgrade
then i tried this one:
pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
(found it there: https://stackoverflow.com/questions/62513412/cannot-install-pip-install-torchvision )
due to some access restriction i finally added "--user" on above
final result:
torch=1.5.1+cpu
torchvision=0.6.1+cpu
and previous dangling operation is now past.
alternate combinations of CPU/CUDA, OS, installer and alikes can be found via the tool here:
https://pytorch.org/get-started/locally/
for more version pairings and indication what might match with your python version:
https://pypi.org/project/torchvision/
from midas.
Related Issues (20)
- Tuple error, as of today HOT 2
- post training quantization HOT 2
- module 'cv2.cv2' has no attribute 'COLORMAP_INFERNO'
- What is the loss function?
- Copy of MiDaS model made with `copy.deepcopy` does not work. HOT 1
- swin2_tiny failed to run forward(): RuntimeError: unflatten: Provided sizes [64, 64] don't multiply up to the size of dim 2 (64) in the input tensor. HOT 1
- [question] Any suggestions on normalizing the outputs better? HOT 9
- Error Loading Pre-trained Weights: Size Mismatch in DPTDepthModel when trying to run for first time. HOT 7
- System crash when loading DPT_Hybrid
- PyTorch Pipeline Broken HOT 2
- gibberish output? HOT 4
- DPT 3.1 models are now available in the Transformers library HOT 1
- Question about COCO dataset HOT 1
- DEPTH VALUE OF THE EACH PIXEL HOT 12
- iOS Demo app is slowing down over time, and the first inference seems much slower HOT 2
- Converted MiDaS 2.1 TFLite model get wrong result on Mobile HOT 5
- MiDaS 2.1 TFLite fp16 with Core ML Delegate gets wrong results
- Cant find pretrained model HOT 1
- Imp. (Improvement) description in the documents
- Exact distance of image HOT 7
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 midas.