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
'Python library & package > Tensorflow & keras' 카테고리의 다른 글
| keras 사용 도중 killed 될 때 (0) | 2021.12.11 |
|---|---|
| unet을 load_model 시 Unknown layer: GELU. Please ensure this object is passed to the `custom_objects` argument. 가 뜬다면 custom_objects 설정하세요 (0) | 2021.12.11 |
| [펌] 텐서플로우 tf.data.Dataset 사용 방법 (0) | 2021.09.12 |
| 하나의 도커 이미지 docker image 에 여러 개의 컨테이너 container 만들기(tensorflow/serving) (0) | 2021.08.02 |
| 도커를 활용한 Tensorflow model server에 새로운 버전의 모델 배포하기 (0) | 2021.08.02 |