zoukankan      html  css  js  c++  java
  • Detectron2运行日志

    Detectron2运行日志

    (wind2) star@xmatrix:~/Detectron2$ cd detectron2-master
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ 
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ ls
    build    datasets  detectron2           dev     docs                INSTALL.md  MODEL_ZOO.md  README.md  setup.py  tools
    configs  demo      detectron2.egg-info  docker  GETTING_STARTED.md  LICENSE     projects      setup.cfg  tests
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ 
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ 
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ 
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ 
    (wind2) star@xmatrix:~/Detectron2/detectron2-master$ cd demo
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ 
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ ls
    demo.py  predictor.py  README.md
    (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 demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml 
    >   --input input1.jpg input2.jpg 
    >   [--other-options]
    Traceback (most recent call last):
      File "demo.py", line 7, in <module>
        import cv2
    ModuleNotFoundError: No module named 'cv2'
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$   --opts model_final_c10459X3.pkl
    --opts:未找到命令
    (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$ 
    (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 opencv-python
    Collecting opencv-python
      Downloading https://files.pythonhosted.org/packages/46/16/e49e5abd27d988e687634f58b0aa329fe737b686101cda48cd878f77429d/opencv_python-4.4.0.42-cp36-cp36m-manylinux2014_x86_64.whl (49.4MB)
         |████████████████████████████████| 49.4MB 10.7MB/s 
    Requirement already satisfied: numpy>=1.13.3 in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from opencv-python) (1.18.0)
    Installing collected packages: opencv-python
    Successfully installed opencv-python-4.4.0.42
    (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 demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml -input input1.jpg input2.jpg --opts model_final_c10459X3.pkl
    Traceback (most recent call last):
      File "demo.py", line 11, in <module>
        from detectron2.data.detection_utils import read_image
      File "/home/star/Detectron2/detectron2-master/detectron2/data/__init__.py", line 4, in <module>
        from .build import (
      File "/home/star/Detectron2/detectron2-master/detectron2/data/build.py", line 12, in <module>
        from detectron2.structures import BoxMode
      File "/home/star/Detectron2/detectron2-master/detectron2/structures/__init__.py", line 6, in <module>
        from .keypoints import Keypoints, heatmaps_to_keypoints
      File "/home/star/Detectron2/detectron2-master/detectron2/structures/keypoints.py", line 6, in <module>
        from detectron2.layers import interpolate
      File "/home/star/Detectron2/detectron2-master/detectron2/layers/__init__.py", line 5, in <module>
        from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated
      File "/home/star/Detectron2/detectron2-master/detectron2/layers/nms.py", line 6, in <module>
        from torchvision.ops import boxes as box_ops
    ModuleNotFoundError: No module named 'torchvision'
    (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$ pip install torchvision==0.4
    Collecting torchvision==0.4
      Downloading https://files.pythonhosted.org/packages/06/e6/a564eba563f7ff53aa7318ff6aaa5bd8385cbda39ed55ba471e95af27d19/torchvision-0.4.0-cp36-cp36m-manylinux1_x86_64.whl (8.8MB)
         |████████████████████████████████| 8.8MB 3.6MB/s 
    Collecting torch==1.2.0
      Downloading https://files.pythonhosted.org/packages/30/57/d5cceb0799c06733eefce80c395459f28970ebb9e896846ce96ab579a3f1/torch-1.2.0-cp36-cp36m-manylinux1_x86_64.whl (748.8MB)
         |████████████████████████████████| 748.9MB 38kB/s 
    Requirement already satisfied: pillow>=4.1.1 in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from torchvision==0.4) (7.2.0)
    Requirement already satisfied: numpy in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from torchvision==0.4) (1.18.0)
    Requirement already satisfied: six in /home/star/anaconda3/envs/wind2/lib/python3.6/site-packages (from torchvision==0.4) (1.13.0)
    Installing collected packages: torch, torchvision
      Found existing installation: torch 1.4.0a0+39297bf
        Uninstalling torch-1.4.0a0+39297bf:
          Successfully uninstalled torch-1.4.0a0+39297bf
    Successfully installed torch-1.2.0 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$ python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml --input input1.jpg input2.jpg --opts model_final_c10459X3.pkl
    Traceback (most recent call last):
      File "demo.py", line 10, in <module>
        from detectron2.config import get_cfg
      File "/home/star/Detectron2/detectron2-master/detectron2/__init__.py", line 5, in <module>
        setup_environment()
      File "/home/star/Detectron2/detectron2-master/detectron2/utils/env.py", line 98, in setup_environment
        _configure_libraries()
      File "/home/star/Detectron2/detectron2-master/detectron2/utils/env.py", line 76, in _configure_libraries
        assert get_version(torch) >= (1, 4), "Requires torch>=1.4"
    AssertionError: Requires torch>=1.4
    (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
    Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) 
    [GCC 7.3.0] on linux
    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/torchvision-0.4.0.dist-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 https://files.pythonhosted.org/packages/7e/90/6141bf41f5655c78e24f40f710fdd4f8a8aff6c8b7c6f0328240f649bdbe/torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl (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 https://files.pythonhosted.org/packages/24/19/4804aea17cd136f1705a5e98a00618cb8f6ccc375ad8bfa437408e09d058/torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl (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 demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml --input input1.jpg input2.jpg --opts model_final_c10459X3.pkl
    Traceback (most recent call last):
      File "demo.py", line 11, in <module>
        from detectron2.data.detection_utils import read_image
      File "/home/star/Detectron2/detectron2-master/detectron2/data/__init__.py", line 4, in <module>
        from .build import (
      File "/home/star/Detectron2/detectron2-master/detectron2/data/build.py", line 12, in <module>
        from detectron2.structures import BoxMode
      File "/home/star/Detectron2/detectron2-master/detectron2/structures/__init__.py", line 6, in <module>
        from .keypoints import Keypoints, heatmaps_to_keypoints
      File "/home/star/Detectron2/detectron2-master/detectron2/structures/keypoints.py", line 6, in <module>
        from detectron2.layers import interpolate
      File "/home/star/Detectron2/detectron2-master/detectron2/layers/__init__.py", line 3, in <module>
        from .deform_conv import DeformConv, ModulatedDeformConv
      File "/home/star/Detectron2/detectron2-master/detectron2/layers/deform_conv.py", line 10, in <module>
        from detectron2 import _C
    ImportError: /home/star/Detectron2/detectron2-master/detectron2/_C.cpython-36m-x86_64-linux-gnu.so: 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$ 
    QQ 3087438119
  • 相关阅读:
    Java8 中的 Optional
    阿里云查看本服务器 公网ip地址 命令
    Linux添加alias简化命令
    kafka consumer 配置详解
    Kafka查看topic、consumer group状态命令
    ConcurrentHashMap源码分析
    HashMap源码分析
    Java使用Aspose组件进行多文档间的转换操作
    个人Vim配置(即vim目录下vimrc_)
    暑假个人小结
  • 原文地址:https://www.cnblogs.com/herd/p/13699002.html
Copyright © 2011-2022 走看看