Code Monkey home page Code Monkey logo

Comments (4)

ranftlr avatar ranftlr commented on May 22, 2024 1

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.

3dsf avatar 3dsf commented on May 22, 2024 1

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.

ranftlr avatar ranftlr commented on May 22, 2024

Closing due to inactivity.

from midas.

AlexanderStohr avatar AlexanderStohr commented on May 22, 2024

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)

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.