↓폴밍끼 유튜브 채널 자세히보기

Python library & package/Tensorflow & keras

[해결방법] ModuleNotFoundError: No module named 'torchvision.ops'

폴밍끼 2023. 3. 3. 16:50
728x90

아래와 같은 에러가 뜸.

ModuleNotFoundError: No module named 'torchvision.ops'

torchvision 버전을 업그레이드 하면 된다고 한다. 확인해보니 버전이 0.2.2 이었다.

최소 0.9.1로 업그레이드 해주라고 한다.

pip uninstall torchvision
pip install torchvision==0.9.1

해결~!

 

참고

https://github.com/facebookresearch/detectron2/issues/1574

 

ModuleNotFoundError: No module named 'torchvision.ops' · Issue #1574 · facebookresearch/detectron2

Instructions To Reproduce the 🐛 Bug: what changes you made (git diff) or what code you wrote <put diff or code here> what exact command you run: My environment is cuda10.0,python3.6,pytorch1....

github.com