Skip to content

[BUG] ModuleNotFoundError: No module named 'torchvision.ops' #1629

@FrozenWolf-Cyber

Description

@FrozenWolf-Cyber

I am triying to use timm by installing through pip or with conda, but it results in the following error while importing timm:

ModuleNotFoundError: No module named 'torchvision.ops'

To Reproduce
Steps to reproduce the behavior:

  1. pip install timm
import timm

Screenshots
image

Desktop Config:

  • OS: Pop!_OS 22.04 LTS
  • timm-0.6.12-py3-none-any.whl
  • conda list torch :
pytorch                   1.12.1          py3.7_cuda11.3_cudnn8.3.2_0    pytorch
pytorch-cluster           1.6.0           py37_torch_1.12.0_cu113    pyg
pytorch-lightning         0.8.5                      py_0    conda-forge
pytorch-mutex             1.0                        cuda    pytorch
pytorch-scatter           2.1.0           py37_torch_1.12.0_cu113    pyg
pytorch-sparse            0.6.16          py37_torch_1.12.0_cu113    pyg
torch-summary             1.4.5                    pypi_0    pypi
torchaudio                0.12.1               py37_cu113    pytorch
torchinfo                 1.7.0              pyhd8ed1ab_0    conda-forge
torchsummary              1.5.1                    pypi_0    pypi
torchvision               0.2.2                      py_3    pytorch
  • conda list cuda
cudatoolkit               11.3.1               h2bc3f7f_2  
dgl-cuda11.3              0.9.0                    py37_0    dglteam

Driver Version: 510.85.02 CUDA Version: 11.6

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions