ubuntu torch GPU yolov5

1、git clone https://github.com/ultralytics/yolov5

2、安装

(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ pip install -r requirements.txt
Requirement already satisfied: numpy>=1.18.5 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (1.19.5)
Requirement already satisfied: pillow in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from -r requirements.txt (line 8)) (8.1.0)
Requirement already satisfied: torch>=1.6.0 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from -r requirements.txt (line 12)) (1.7.1+cu101)
Requirement already satisfied: torchvision>=0.7.0 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from -r requirements.txt (line 13)) (0.8.2)
Collecting matplotlib>=3.2.2
  Downloading matplotlib-3.3.3-cp37-cp37m-manylinux1_x86_64.whl (11.6 MB)
     |████████████████████████████████| 11.6 MB 11.0 MB/s 
Collecting opencv-python>=4.1.2
  Downloading opencv_python-4.5.1.48-cp37-cp37m-manylinux2014_x86_64.whl (50.4 MB)
     |████████████████████████████████| 50.4 MB 1.2 MB/s 
Collecting PyYAML>=5.3
  Using cached PyYAML-5.3.1.tar.gz (269 kB)
Collecting scipy>=1.4.1
  Downloading scipy-1.6.0-cp37-cp37m-manylinux1_x86_64.whl (27.4 MB)
     |████████████████████████████████| 27.4 MB 10.6 MB/s 
Collecting tensorboard>=2.2
  Downloading tensorboard-2.4.0-py3-none-any.whl (10.6 MB)
     |████████████████████████████████| 10.6 MB 11.8 MB/s 
Requirement already satisfied: setuptools>=41.0.0 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from tensorboard>=2.2->-r requirements.txt (line 11)) (49.6.0.post20210108)
Requirement already satisfied: wheel>=0.26 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from tensorboard>=2.2->-r requirements.txt (line 11)) (0.36.2)
Requirement already satisfied: typing-extensions in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from torch>=1.6.0->-r requirements.txt (line 12)) (3.7.4.3)
Collecting tqdm>=4.41.0
  Downloading tqdm-4.56.0-py2.py3-none-any.whl (72 kB)
     |████████████████████████████████| 72 kB 906 kB/s 
Collecting absl-py>=0.4
  Downloading absl_py-0.11.0-py3-none-any.whl (127 kB)
     |████████████████████████████████| 127 kB 13.6 MB/s 
Collecting cycler>=0.10
  Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting google-auth<2,>=1.6.3
  Downloading google_auth-1.24.0-py2.py3-none-any.whl (114 kB)
     |████████████████████████████████| 114 kB 12.3 MB/s 
Collecting cachetools<5.0,>=2.0.0
  Downloading cachetools-4.2.0-py3-none-any.whl (12 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Downloading google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB)
Collecting grpcio>=1.24.3
  Downloading grpcio-1.34.0-cp37-cp37m-manylinux2014_x86_64.whl (3.9 MB)
     |████████████████████████████████| 3.9 MB 12.4 MB/s 
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.3.1-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 12.9 MB/s 
Collecting markdown>=2.6.8
  Downloading Markdown-3.3.3-py3-none-any.whl (96 kB)
     |████████████████████████████████| 96 kB 5.3 MB/s 
Collecting protobuf>=3.6.0
  Downloading protobuf-3.14.0-cp37-cp37m-manylinux1_x86_64.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 10.9 MB/s 
Collecting pyasn1-modules>=0.2.1
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pyasn1<0.5.0,>=0.4.6
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting python-dateutil>=2.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting requests<3,>=2.21.0
  Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 6.1 MB/s 
Requirement already satisfied: certifi>=2017.4.17 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from requests<3,>=2.21.0->tensorboard>=2.2->-r requirements.txt (line 11)) (2020.12.5)
Collecting chardet<5,>=3.0.2
  Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
     |████████████████████████████████| 178 kB 12.6 MB/s 
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting requests-oauthlib>=0.7.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting rsa<5,>=3.1.4
  Downloading rsa-4.7-py3-none-any.whl (34 kB)
Collecting six>=1.10.0
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting tensorboard-plugin-wit>=1.6.0
  Using cached tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.2-py2.py3-none-any.whl (136 kB)
     |████████████████████████████████| 136 kB 12.6 MB/s 
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting Cython
  Downloading Cython-0.29.21-cp37-cp37m-manylinux1_x86_64.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 12.3 MB/s 
Collecting importlib-metadata
  Downloading importlib_metadata-3.4.0-py3-none-any.whl (10 kB)
Collecting zipp>=0.5
  Downloading zipp-3.4.0-py3-none-any.whl (5.2 kB)
Building wheels for collected packages: PyYAML
  Building wheel for PyYAML (setup.py) ... done
  Created wheel for PyYAML: filename=PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl size=44620 sha256=02e5ce8a1020ec5dd0303315a39acb2bfb69d386a9e4372160e000952f2294c0
  Stored in directory: /home/star/.cache/pip/wheels/5e/03/1e/e1e954795d6f35dfc7b637fe2277bff021303bd9570ecea653
Successfully built PyYAML
Installing collected packages: urllib3, pyasn1, idna, chardet, zipp, six, rsa, requests, pyasn1-modules, oauthlib, cachetools, requests-oauthlib, importlib-metadata, google-auth, werkzeug, tensorboard-plugin-wit, python-dateutil, pyparsing, protobuf, markdown, kiwisolver, grpcio, google-auth-oauthlib, cycler, absl-py, tqdm, tensorboard, scipy, PyYAML, opencv-python, matplotlib, Cython
Successfully installed Cython-0.29.21 PyYAML-5.3.1 absl-py-0.11.0 cachetools-4.2.0 chardet-4.0.0 cycler-0.10.0 google-auth-1.24.0 google-auth-oauthlib-0.4.2 grpcio-1.34.0 idna-2.10 importlib-metadata-3.4.0 kiwisolver-1.3.1 markdown-3.3.3 matplotlib-3.3.3 oauthlib-3.1.0 opencv-python-4.5.1.48 protobuf-3.14.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyparsing-2.4.7 python-dateutil-2.8.1 requests-2.25.1 requests-oauthlib-1.3.0 rsa-4.7 scipy-1.6.0 six-1.15.0 tensorboard-2.4.0 tensorboard-plugin-wit-1.7.0 tqdm-4.56.0 urllib3-1.26.2 werkzeug-1.0.1 zipp-3.4.0
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 

 

(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ pip install ipython
Collecting ipython
  Downloading ipython-7.19.0-py3-none-any.whl (784 kB)
     |████████████████████████████████| 784 kB 1.4 MB/s 
Requirement already satisfied: setuptools>=18.5 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from ipython) (49.6.0.post20210108)
Collecting jedi>=0.10
  Downloading jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 8.4 MB/s 
Collecting parso<0.9.0,>=0.8.0
  Downloading parso-0.8.1-py2.py3-none-any.whl (93 kB)
     |████████████████████████████████| 93 kB 2.5 MB/s 
Collecting pexpect>4.3
  Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 6.6 MB/s 
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading prompt_toolkit-3.0.10-py3-none-any.whl (355 kB)
     |████████████████████████████████| 355 kB 10.8 MB/s 
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting traitlets>=4.2
  Downloading traitlets-5.0.5-py3-none-any.whl (100 kB)
     |████████████████████████████████| 100 kB 8.9 MB/s 
Collecting backcall
  Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting decorator
  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting ipython-genutils
  Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting pickleshare
  Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting pygments
  Downloading Pygments-2.7.4-py3-none-any.whl (950 kB)
     |████████████████████████████████| 950 kB 12.0 MB/s 
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Installing collected packages: wcwidth, ptyprocess, parso, ipython-genutils, traitlets, pygments, prompt-toolkit, pickleshare, pexpect, jedi, decorator, backcall, ipython
Successfully installed backcall-0.2.0 decorator-4.4.2 ipython-7.19.0 ipython-genutils-0.2.0 jedi-0.18.0 parso-0.8.1 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.10 ptyprocess-0.7.0 pygments-2.7.4 traitlets-5.0.5 wcwidth-0.2.5
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 

 

 

(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ python detect.py --source data/images --weights yolov5s.pt --conf 0.25
Traceback (most recent call last):
  File "detect.py", line 10, in <module>
    from models.experimental import attempt_load
  File "/home/star/Yolov/yolov5-master/models/experimental.py", line 7, in <module>
    from models.common import Conv, DWConv
  File "/home/star/Yolov/yolov5-master/models/common.py", line 9, in <module>
    from utils.datasets import letterbox
  File "/home/star/Yolov/yolov5-master/utils/datasets.py", line 21, in <module>
    from utils.general import xyxy2xywh, xywh2xyxy
  File "/home/star/Yolov/yolov5-master/utils/general.py", line 22, in <module>
    from utils.torch_utils import init_torch_seeds
  File "/home/star/Yolov/yolov5-master/utils/torch_utils.py", line 14, in <module>
    import torchvision
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision/__init__.py", line 4, in <module>
    from .extension import _HAS_OPS
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision/extension.py", line 101, in <module>
    _check_cuda_version()
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision/extension.py", line 97, in _check_cuda_version
    .format(t_major, t_minor, tv_major, tv_minor))
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=10.1 and torchvision has CUDA Version=10.2. Please reinstall the torchvision that matches your PyTorch install.
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ python
Python 3.7.9 | packaged by conda-forge | (default, Dec  9 2020, 21:08:20) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>> 
>>> import torch
>>> torch.cuda.is_available()
True
>>> torch.cuda.version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'torch.cuda' has no attribute 'version'
>>> 
>>> 
>>> 
>>> exit();

(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ nvidia-smi
Wed Jan 13 08:31:41 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.67       Driver Version: 418.67       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla P4            Off  | 00000000:02:00.0 Off |                    0 |
| N/A   34C    P0    22W /  75W |      0MiB /  7611MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ pip unistall torchvision
ERROR: unknown command "unistall" - maybe you meant "uninstall"
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ pip uninstall torchvision
Found existing installation: torchvision 0.8.2
Uninstalling torchvision-0.8.2:
  Would remove:
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision-0.8.2.dist-info/*
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision.libs/libcudart.459720b2.so.10.2
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision.libs/libjpeg.ceea7512.so.62
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision.libs/libpng16.7f72a3c5.so.16
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision.libs/libz.1328edc3.so.1
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torchvision/*
Proceed (y/n)? y
  Successfully uninstalled torchvision-0.8.2
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ pip uninstall torch
Found existing installation: torch 1.7.1+cu101
Uninstalling torch-1.7.1+cu101:
  Would remove:
    /home/star/anaconda3/envs/wind_202103/bin/convert-caffe2-to-onnx
    /home/star/anaconda3/envs/wind_202103/bin/convert-onnx-to-caffe2
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/caffe2/*
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch-1.7.1+cu101.dist-info/*
    /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/*
Proceed (y/n)? y
  Successfully uninstalled torch-1.7.1+cu101
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Requirement already satisfied: torchaudio==0.7.2 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (0.7.2)
Collecting torch==1.7.1+cu101
  Downloading https://download.pytorch.org/whl/cu101/torch-1.7.1%2Bcu101-cp37-cp37m-linux_x86_64.whl (735.4 MB)
     |████████████████████████████████| 735.4 MB 19 kB/s 
Requirement already satisfied: numpy in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from torch==1.7.1+cu101) (1.19.5)
Requirement already satisfied: typing-extensions in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from torch==1.7.1+cu101) (3.7.4.3)
Collecting torchvision==0.8.2+cu101
  Downloading https://download.pytorch.org/whl/cu101/torchvision-0.8.2%2Bcu101-cp37-cp37m-linux_x86_64.whl (12.8 MB)
     |████████████████████████████████| 12.8 MB 11.6 MB/s 
Requirement already satisfied: pillow>=4.1.1 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from torchvision==0.8.2+cu101) (8.1.0)
Installing collected packages: torch, torchvision
Successfully installed torch-1.7.1+cu101 torchvision-0.8.2+cu101
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 

 

(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ python detect.py --source data/images --weights yolov5s.pt --conf 0.25
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', project='runs/detect', save_conf=False, save_txt=False, source='data/images', update=False, view_img=False, weights=['yolov5s.pt'])
Using torch 1.7.1+cu101 CUDA:0 (Tesla P4, 7611MB)

Downloading https://github.com/ultralytics/yolov5/releases/download/v3.1/yolov5s.pt to yolov5s.pt...
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.5M/14.5M [00:04<00:00, 3.24MB/s]

Fusing layers... 
Model Summary: 232 layers, 7459581 parameters, 0 gradients
image 1/2 /home/star/Yolov/yolov5-master/data/images/bus.jpg: 640x480 4 persons, 1 buss, 1 skateboards, Done. (0.028s)
image 2/2 /home/star/Yolov/yolov5-master/data/images/zidane.jpg: 384x640 2 persons, 2 ties, Done. (0.026s)
Results saved to runs/detect/exp
Done. (0.165s)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 

 

 

 

(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python detect_2021011301.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', project='runs/detect', save_conf=False, save_txt=False, source='data/images', update=False, view_img=False, weights='yolov5s.pt')
Using torch 1.7.1+cu101 CUDA:0 (Tesla P4, 7611MB)

Fusing layers... 
Model Summary: 232 layers, 7459581 parameters, 0 gradients
False
image 1/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_06_34_left.jpg: 384x640 3 persons, Done. (0.025s)
image 2/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_06_54_left.jpg: 384x640 2 persons, Done. (0.025s)
image 3/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_07_34_left.jpg: 384x640 3 persons, 1 boats, Done. (0.022s)
image 4/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_10_44_left.jpg: 384x640 7 persons, Done. (0.024s)
image 5/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_11_54_left.jpg: 384x640 5 persons, Done. (0.022s)
image 6/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_12_34_left.jpg: 384x640 6 persons, Done. (0.024s)
image 7/8 /home/star/Yolov/yolov5-master-20210113/data/images/bus.jpg: 640x480 4 persons, 1 buss, 1 skateboards, Done. (0.029s)
image 8/8 /home/star/Yolov/yolov5-master-20210113/data/images/zidane.jpg: 384x640 2 persons, 2 ties, Done. (0.023s)
Results saved to runs/detect/exp4
Done. (0.518s)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 

 

 

(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Traceback (most recent call last):
  File "pyqt_main_2021010801.py", line 6, in <module>
    from pyqt_dlg_check_camera_2021010801 import *
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 21, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ pip install pandas
Collecting pandas
  Downloading pandas-1.2.0-cp37-cp37m-manylinux1_x86_64.whl (9.9 MB)
     |████████████████████████████████| 9.9 MB 906 kB/s 
Requirement already satisfied: python-dateutil>=2.7.3 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from pandas) (2.8.1)
Requirement already satisfied: numpy>=1.16.5 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from pandas) (1.19.5)
Requirement already satisfied: six>=1.5 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
Collecting pytz>=2017.3
  Downloading pytz-2020.5-py2.py3-none-any.whl (510 kB)
     |████████████████████████████████| 510 kB 11.6 MB/s 
Installing collected packages: pytz, pandas
Successfully installed pandas-1.2.0 pytz-2020.5
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Traceback (most recent call last):
  File "pyqt_main_2021010801.py", line 6, in <module>
    from pyqt_dlg_check_camera_2021010801 import *
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 35, in <module>
    from models.experimental import attempt_load
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/experimental.py", line 7, in <module>
    from models.common import Conv, DWConv
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 12, in <module>
    from utils.plots import color_list
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/utils/plots.py", line 15, in <module>
    import seaborn as sns
ModuleNotFoundError: No module named 'seaborn'
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ pip install seaborn
Collecting seaborn
  Downloading seaborn-0.11.1-py3-none-any.whl (285 kB)
     |████████████████████████████████| 285 kB 1.9 MB/s 
Requirement already satisfied: scipy>=1.0 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from seaborn) (1.6.0)
Requirement already satisfied: matplotlib>=2.2 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from seaborn) (3.3.3)
Requirement already satisfied: numpy>=1.15 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from seaborn) (1.19.5)
Requirement already satisfied: pandas>=0.23 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from seaborn) (1.2.0)
Requirement already satisfied: pillow>=6.2.0 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (8.1.0)
Requirement already satisfied: python-dateutil>=2.1 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (2.4.7)
Requirement already satisfied: cycler>=0.10 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from matplotlib>=2.2->seaborn) (0.10.0)
Requirement already satisfied: six in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from cycler>=0.10->matplotlib>=2.2->seaborn) (1.15.0)
Requirement already satisfied: pytz>=2017.3 in /home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages (from pandas>=0.23->seaborn) (2020.5)
Installing collected packages: seaborn
Successfully installed seaborn-0.11.1
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Fusing layers... 
+++
1
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
\
Fusing layers... 
+++
0
[ WARN:0] global /tmp/pip-req-build-7m_g9lbm/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ \
> 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Fusing layers... 
+++
0
[ WARN:0] global /tmp/pip-req-build-7m_g9lbm/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Fusing layers... 
+++
1
[ WARN:0] global /tmp/pip-req-build-7m_g9lbm/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video1): can't open camera by index
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ +
+:未找到命令
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Fusing layers... 
+++
1
False
True
Traceback (most recent call last):
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 279, in show_camera_action
    self.detectionObjectFunction()
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 299, in detectionObjectFunction
    pred = self.model(img, augment=self.augment)[0]
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/yolo.py", line 119, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/yolo.py", line 135, in forward_once
    x = m(x)  # run
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 111, in forward
    return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 39, in fuseforward
    return self.act(self.conv(x))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 423, in forward
    return self._conv_forward(input, self.weight)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 420, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.cuda.FloatTensor) should be the same
已放弃 (核心已转储)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Fusing layers... 
+++
2
False
True
Traceback (most recent call last):
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 279, in show_camera_action
    self.detectionObjectFunction()
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 299, in detectionObjectFunction
    pred = self.model(img, augment=self.augment)[0]
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/yolo.py", line 119, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/yolo.py", line 135, in forward_once
    x = m(x)  # run
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 111, in forward
    return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 39, in fuseforward
    return self.act(self.conv(x))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 423, in forward
    return self._conv_forward(input, self.weight)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 420, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.cuda.FloatTensor) should be the same
已放弃 (核心已转储)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ python pyqt_main_2021010801.py
Fusing layers... 
+++
2
False
True
Traceback (most recent call last):
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 279, in show_camera_action
    self.detectionObjectFunction()
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 299, in detectionObjectFunction
    pred = self.model(img, augment=self.augment)[0]
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/yolo.py", line 119, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/yolo.py", line 135, in forward_once
    x = m(x)  # run
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 111, in forward
    return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master_20200112/yolov5-master/models/common.py", line 39, in fuseforward
    return self.act(self.conv(x))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 423, in forward
    return self._conv_forward(input, self.weight)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 420, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.cuda.FloatTensor) should be the same
已放弃 (核心已转储)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master_20200112/yolov5-master$ cd ../../
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ ls
Towards-Realtime-MOT-master  yolov5-master  yolov5-master_20200112  yolov5-master-tracking  yolov5-master.zip
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ cd yolov5-master
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ python pyqt_main_2021010801.py
Traceback (most recent call last):
  File "pyqt_main_2021010801.py", line 6, in <module>
    from pyqt_dlg_check_camera_2021010801 import *
  File "/home/star/Yolov/yolov5-master/pyqt_dlg_check_camera_2021010801.py", line 36, in <module>
    from utils.datasets import LoadStreams,LoadStreams2, LoadImages,LoadWebcam,letterbox
ImportError: cannot import name 'LoadStreams2' from 'utils.datasets' (/home/star/Yolov/yolov5-master/utils/datasets.py)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master$ cd ../
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ ls
Towards-Realtime-MOT-master  yolov5-master  yolov5-master_20200112  yolov5-master-20210113  yolov5-master-tracking  yolov5-master.zip
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ 
(wind_202103) star@xmatrix:~/Yolov$ cd yolov5-master-20210113
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ ls
data        LICENSE                                 __pycache__                    pyqt_dlg_check_camera_2021010801.py  pyrealsense_test1.py  test.py         weights
detect.py   models                                  pyglet_pointcloud_viewer.py    pyqt_main_2021010801.py              README.md             train.py        yolov5s.pt
Dockerfile  opencv_pointcloud_viewer_2021011201.py  pyqt_2021010801.py             pyrealsense_save_img.py              requirements.txt      tutorial.ipynb
hubconf.py  opencv_pointcloud_viewer.py             pyqt_dlg_camera_2021010801.py  pyrealsense_save_point_cloud.py      runs                  utils
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python pyqt_main_2021010801.py
Traceback (most recent call last):
  File "pyqt_main_2021010801.py", line 6, in <module>
    from pyqt_dlg_check_camera_2021010801 import *
  File "/home/star/Yolov/yolov5-master-20210113/pyqt_dlg_check_camera_2021010801.py", line 35, in <module>
    from models.experimental import attempt_load
  File "/home/star/Yolov/yolov5-master-20210113/models/experimental.py", line 7, in <module>
    from models.common import Conv, DWConv
  File "/home/star/Yolov/yolov5-master-20210113/models/common.py", line 9, in <module>
    from utils.datasets import letterbox
  File "/home/star/Yolov/yolov5-master-20210113/utils/datasets.py", line 23, in <module>
    from utils.general import xyxy2xywh, xywh2xyxy, clean_str
ImportError: cannot import name 'clean_str' from 'utils.general' (/home/star/Yolov/yolov5-master-20210113/utils/general.py)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python pyqt_main_2021010801.py
Traceback (most recent call last):
  File "pyqt_main_2021010801.py", line 6, in <module>
    from pyqt_dlg_check_camera_2021010801 import *
  File "/home/star/Yolov/yolov5-master-20210113/pyqt_dlg_check_camera_2021010801.py", line 39, in <module>
    from utils.plots import plot_one_box,plot_one_box2
ImportError: cannot import name 'plot_one_box2' from 'utils.plots' (/home/star/Yolov/yolov5-master-20210113/utils/plots.py)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python pyqt_main_2021010801.py
Fusing layers... 
+++
2
False
True
Traceback (most recent call last):
  File "/home/star/Yolov/yolov5-master-20210113/pyqt_dlg_check_camera_2021010801.py", line 279, in show_camera_action
    self.detectionObjectFunction()
  File "/home/star/Yolov/yolov5-master-20210113/pyqt_dlg_check_camera_2021010801.py", line 299, in detectionObjectFunction
    pred = self.model(img, augment=self.augment)[0]
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master-20210113/models/yolo.py", line 121, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "/home/star/Yolov/yolov5-master-20210113/models/yolo.py", line 137, in forward_once
    x = m(x)  # run
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master-20210113/models/common.py", line 93, in forward
    return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master-20210113/models/common.py", line 37, in fuseforward
    return self.act(self.conv(x))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 423, in forward
    return self._conv_forward(input, self.weight)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 420, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.cuda.FloatTensor) should be the same
已放弃 (核心已转储)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 

 

(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python detect_2021011301.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', project='runs/detect', save_conf=False, save_txt=False, source='data/images', update=False, view_img=False, weights='yolov5s.pt')
Using torch 1.7.1+cu101 CUDA:0 (Tesla P4, 7611MB)

Fusing layers... 
Model Summary: 232 layers, 7459581 parameters, 0 gradients
False
image 1/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_06_34_left.jpg: 384x640 3 persons, Done. (0.025s)
image 2/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_06_54_left.jpg: 384x640 2 persons, Done. (0.025s)
image 3/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_07_34_left.jpg: 384x640 3 persons, 1 boats, Done. (0.022s)
image 4/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_10_44_left.jpg: 384x640 7 persons, Done. (0.024s)
image 5/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_11_54_left.jpg: 384x640 5 persons, Done. (0.022s)
image 6/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_12_34_left.jpg: 384x640 6 persons, Done. (0.024s)
image 7/8 /home/star/Yolov/yolov5-master-20210113/data/images/bus.jpg: 640x480 4 persons, 1 buss, 1 skateboards, Done. (0.029s)
image 8/8 /home/star/Yolov/yolov5-master-20210113/data/images/zidane.jpg: 384x640 2 persons, 2 ties, Done. (0.023s)
Results saved to runs/detect/exp4
Done. (0.518s)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python detect_2021011301.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', project='runs/detect', save_conf=False, save_txt=False, source='data/images', update=False, view_img=False, weights='yolov5s.pt')

Using torch 1.7.1+cu101 CUDA:0 (Tesla P4, 7611MB)

cuda:0
Fusing layers... 
Model Summary: 232 layers, 7459581 parameters, 0 gradients
False
image 1/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_06_34_left.jpg: 384x640 3 persons, Done. (0.025s)
image 2/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_06_54_left.jpg: 384x640 2 persons, Done. (0.025s)
image 3/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_07_34_left.jpg: 384x640 3 persons, 1 boats, Done. (0.021s)
image 4/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_10_44_left.jpg: 384x640 7 persons, Done. (0.021s)
image 5/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_11_54_left.jpg: 384x640 5 persons, Done. (0.021s)
image 6/8 /home/star/Yolov/yolov5-master-20210113/data/images/2019_07_14-08_12_34_left.jpg: 384x640 6 persons, Done. (0.020s)
image 7/8 /home/star/Yolov/yolov5-master-20210113/data/images/bus.jpg: 640x480 4 persons, 1 buss, 1 skateboards, Done. (0.027s)
image 8/8 /home/star/Yolov/yolov5-master-20210113/data/images/zidane.jpg: 384x640 2 persons, 2 ties, Done. (0.022s)
Results saved to runs/detect/exp5
Done. (0.500s)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python pyqt_main_2021010801.py
Fusing layers... 
+++
2
False
True
Traceback (most recent call last):
  File "/home/star/Yolov/yolov5-master-20210113/pyqt_dlg_check_camera_2021010801.py", line 279, in show_camera_action
    self.detectionObjectFunction()
  File "/home/star/Yolov/yolov5-master-20210113/pyqt_dlg_check_camera_2021010801.py", line 299, in detectionObjectFunction
    pred = self.model(img, augment=self.augment)[0]
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master-20210113/models/yolo.py", line 121, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "/home/star/Yolov/yolov5-master-20210113/models/yolo.py", line 137, in forward_once
    x = m(x)  # run
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master-20210113/models/common.py", line 93, in forward
    return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/Yolov/yolov5-master-20210113/models/common.py", line 37, in fuseforward
    return self.act(self.conv(x))
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 423, in forward
    return self._conv_forward(input, self.weight)
  File "/home/star/anaconda3/envs/wind_202103/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 420, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.HalfTensor) and weight type (torch.cuda.FloatTensor) should be the same
已放弃 (核心已转储)
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ 
(wind_202103) star@xmatrix:~/Yolov/yolov5-master-20210113$ python pyqt_main_2021010801.py
cuda:0
True
Fusing layers... 
+++
2
False
True
detection time. (0.033s)
detection time. (0.028s)
detection time. (0.029s)
detection time. (0.028s)
detection time. (0.028s)
detection time. (0.029s)
detection time. (0.027s)
detection time. (0.027s)
detection time. (0.026s)
detection time. (0.025s)
detection time. (0.027s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.025s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.022s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.027s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.032s)
detection time. (0.030s)
detection time. (0.027s)
detection time. (0.025s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.027s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.024s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.023s)
detection time. (0.022s)
detection time. (0.023s)
detection time. (0.024s)
detection time. (0.022s)

 

 

 

 

 

 

参考:

https://github.com/ultralytics/yolov5

https://pytorch.org/get-started/locally/

posted @ 2021-01-13 08:47  西北逍遥  阅读(1423)  评论(0编辑  收藏  举报