2024年5月7日发(作者:)

Type "help", "copyright", "credits" or "license" for more information.

>>>

>>>

>>> import torch

>>>

>>> print(torch.__version__)

1.2.0

>>>

>>>

>>>

>>>

>>> print(torch.__version__)

1.2.0

>>>

>>>

>>>

>>> exit();

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ pip uninstall torchvision

Uninstalling torchvision-0.4.0:

Would remove:

/home/star/anaconda3/envs/wind2/lib/python3.6/site-packages/-info/*

/home/star/anaconda3/envs/wind2/lib/python3.6/site-packages/torchvision/*

Proceed (y/n)? y

Successfully uninstalled torchvision-0.4.0

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ pip install torchvision==0.5

Collecting torchvision==0.5

Downloading /packages/7e/90/6141bf41f5655c78e24f40f710fdd4f8a8aff6c8b7c6f0328240f649bdbe/torchvision-0.5.0-cp36-cp36m-manylinux1_x86_ (4.0MB)

|████████████████████████████████| 4.0MB 3.2MB/s

Requirement already satisfied: pillow>=4.1.1 in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from torchvision==0.5) (7.2.0)

Collecting torch==1.4.0

Downloading /packages/24/19/4804aea17cd136f1705a5e98a00618cb8f6ccc375ad8bfa437408e09d058/torch-1.4.0-cp36-cp36m-manylinux1_x86_ (753.4MB)

|████████████████████████████████| 753.4MB 32kB/s

Requirement already satisfied: numpy in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from torchvision==0.5) (1.18.0)

Requirement already satisfied: six in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from torchvision==0.5) (1.13.0)

Installing collected packages: torch, torchvision

Found existing installation: torch 1.2.0

Uninstalling torch-1.2.0:

Successfully uninstalled torch-1.2.0

Successfully installed torch-1.4.0 torchvision-0.5.0

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ python --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_ --input --opts model_final_

Traceback (most recent call last):

File "", line 11, in

from ion_utils import read_image

File "/home/star/Detectron2/detectron2-master/detectron2/data/__init__.py", line 4, in

from .build import (

File "/home/star/Detectron2/detectron2-master/detectron2/data/", line 12, in

from ures import BoxMode

File "/home/star/Detectron2/detectron2-master/detectron2/structures/__init__.py", line 6, in

from .keypoints import Keypoints, heatmaps_to_keypoints

File "/home/star/Detectron2/detectron2-master/detectron2/structures/", line 6, in

from import interpolate

File "/home/star/Detectron2/detectron2-master/detectron2/layers/__init__.py", line 3, in

from .deform_conv import DeformConv, ModulatedDeformConv

File "/home/star/Detectron2/detectron2-master/detectron2/layers/deform_", line 10, in

from detectron2 import _C

ImportError: /home/star/Detectron2/detectron2-master/detectron2/_n-36m-x86_: undefined symbol: _ZN3c107Warning4warnENS_14SourceLocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$

(wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$