PaddleDetection配置记录


PaddleDetection配置记录

启动环境:

(base) C:\Users\BIM>conda activate wind_paddle

(wind_paddle) C:\Users\BIM>

下载程序(从github上下载),进入目录:

(wind_paddle) F:\>
(wind_paddle) F:\>cd F:\PaddlePaddle_Project\PaddleDetection-release-2.3

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

配置:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>pip install -r requirements.txt
Collecting tqdm
  Downloading tqdm-4.63.1-py2.py3-none-any.whl (76 kB)
     |████████████████████████████████| 76 kB 654 kB/s
Collecting typeguard
  Downloading typeguard-2.13.3-py3-none-any.whl (17 kB)
Collecting visualdl>=2.1.0
  Downloading visualdl-2.2.3-py3-none-any.whl (2.7 MB)
     |████████████████████████████████| 2.7 MB 1.7 MB/s
Collecting opencv-python
  Downloading opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl (35.4 MB)
     |████████████████████████████████| 35.4 MB 6.8 MB/s
Collecting PyYAML
  Downloading PyYAML-6.0-cp37-cp37m-win_amd64.whl (153 kB)
     |████████████████████████████████| 153 kB 1.3 MB/s
Collecting shapely
  Downloading Shapely-1.8.1.post1-cp37-cp37m-win_amd64.whl (1.3 MB)
     |████████████████████████████████| 1.3 MB 3.2 MB/s
Collecting scipy
  Downloading scipy-1.7.3-cp37-cp37m-win_amd64.whl (34.1 MB)
     |████████████████████████████████| 34.1 MB 371 kB/s
Collecting terminaltables
  Downloading terminaltables-3.1.10-py2.py3-none-any.whl (15 kB)
Collecting Cython
  Downloading Cython-0.29.28-py2.py3-none-any.whl (983 kB)
     |████████████████████████████████| 983 kB 6.8 MB/s
Collecting pycocotools
  Downloading pycocotools-2.0.4.tar.gz (106 kB)
     |████████████████████████████████| 106 kB 6.4 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: setuptools>=42.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 12)) (52.0.0.post20210125)
Collecting lap
  Downloading lap-0.4.0.tar.gz (1.5 MB)
     |████████████████████████████████| 1.5 MB 3.3 MB/s
Collecting sklearn
  Using cached sklearn-0.0-py2.py3-none-any.whl
Collecting motmetrics
  Downloading motmetrics-1.2.0-py3-none-any.whl (151 kB)
     |████████████████████████████████| 151 kB 3.2 MB/s
Collecting openpyxl
  Downloading openpyxl-3.0.9-py2.py3-none-any.whl (242 kB)
     |████████████████████████████████| 242 kB 2.2 MB/s
Collecting cython_bbox
  Downloading cython_bbox-0.1.3.tar.gz (41 kB)
     |████████████████████████████████| 41 kB 90 kB/s
    ERROR: Command errored out with exit status 1:
     command: 'E:\Anaconda3\install\envs\wind_paddle\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-hl1fukkf\\cython-bbox_60f769584e06444590769eb0cd7117fb\\setup.py'"'"'; __file__='"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-hl1fukkf\\cython-bbox_60f769584e06444590769eb0cd7117fb\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\BIM\AppData\Local\Temp\pip-pip-egg-info-8pbal6dv'
         cwd: C:\Users\BIM\AppData\Local\Temp\pip-install-hl1fukkf\cython-bbox_60f769584e06444590769eb0cd7117fb\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\BIM\AppData\Local\Temp\pip-install-hl1fukkf\cython-bbox_60f769584e06444590769eb0cd7117fb\setup.py", line 10, in 
        from Cython.Build import cythonize
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/fa/b9/fc7d60e8c3b29cc0ff24a3bb3c4b7457e10b7610fbb2893741b623487b34/cython_bbox-0.1.3.tar.gz#sha256=82e2d887534ecc10d3507489a05b11259f3baacd29eee37e6d8c97e1ffb16554 (from https://pypi.org/simple/cython-bbox/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading cython_bbox-0.1.2.tar.gz (40 kB)
     |████████████████████████████████| 40 kB 2.6 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'E:\Anaconda3\install\envs\wind_paddle\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-hl1fukkf\\cython-bbox_7ff496d259af44329f822075d82d1eae\\setup.py'"'"'; __file__='"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-hl1fukkf\\cython-bbox_7ff496d259af44329f822075d82d1eae\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\BIM\AppData\Local\Temp\pip-pip-egg-info-3w4_20vk'
         cwd: C:\Users\BIM\AppData\Local\Temp\pip-install-hl1fukkf\cython-bbox_7ff496d259af44329f822075d82d1eae\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\BIM\AppData\Local\Temp\pip-install-hl1fukkf\cython-bbox_7ff496d259af44329f822075d82d1eae\setup.py", line 10, in 
        from Cython.Build import cythonize
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/be/50/21618d0e79554dadd44383a1448ae667941950e391e2d9f7cf1986a0a512/cython_bbox-0.1.2.tar.gz#sha256=81740b3b5e88be8ab12165fc6e176094ac71ef8bc12a27588fe94d85b6128c1c (from https://pypi.org/simple/cython-bbox/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cython_bbox
ERROR: No matching distribution found for cython_bbox

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>


(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

发现有错误,安装对应的缺失库:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>pip install CPython
Collecting CPython
  Downloading cPython-0.0.6.tar.gz (4.7 kB)
Collecting pymongo
  Downloading pymongo-4.0.2-cp37-cp37m-win_amd64.whl (350 kB)
     |████████████████████████████████| 350 kB 504 kB/s
Requirement already satisfied: requests in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from CPython) (2.25.1)
Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->CPython) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->CPython) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->CPython) (1.26.4)
Requirement already satisfied: idna<3,>=2.5 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->CPython) (2.10)
Building wheels for collected packages: CPython
  Building wheel for CPython (setup.py) ... done
  Created wheel for CPython: filename=cPython-0.0.6-py3-none-any.whl size=4913 sha256=f4672bec7b56ae700d29355dd34e5d3f7b755ae8ca972a6f2d185161cad62a76
  Stored in directory: c:\users\bim\appdata\local\pip\cache\wheels\88\92\ea\c32ad929e979a7303e010b29c736c793368f6f61c8c9902865
Successfully built CPython
Installing collected packages: pymongo, CPython
Successfully installed CPython-0.0.6 pymongo-4.0.2

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

再次配置环境:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>pip install -r requirements.txt
Collecting tqdm
  Using cached tqdm-4.63.1-py2.py3-none-any.whl (76 kB)
Collecting typeguard
  Using cached typeguard-2.13.3-py3-none-any.whl (17 kB)
Collecting visualdl>=2.1.0
  Using cached visualdl-2.2.3-py3-none-any.whl (2.7 MB)
Collecting opencv-python
  Using cached opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl (35.4 MB)
Collecting PyYAML
  Using cached PyYAML-6.0-cp37-cp37m-win_amd64.whl (153 kB)
Collecting shapely
  Using cached Shapely-1.8.1.post1-cp37-cp37m-win_amd64.whl (1.3 MB)
Collecting scipy
  Using cached scipy-1.7.3-cp37-cp37m-win_amd64.whl (34.1 MB)
Collecting terminaltables
  Using cached terminaltables-3.1.10-py2.py3-none-any.whl (15 kB)
Collecting Cython
  Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting pycocotools
  Using cached pycocotools-2.0.4.tar.gz (106 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: setuptools>=42.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 12)) (52.0.0.post20210125)
Collecting lap
  Using cached lap-0.4.0.tar.gz (1.5 MB)
Collecting sklearn
  Using cached sklearn-0.0-py2.py3-none-any.whl
Collecting motmetrics
  Using cached motmetrics-1.2.0-py3-none-any.whl (151 kB)
Collecting openpyxl
  Using cached openpyxl-3.0.9-py2.py3-none-any.whl (242 kB)
Collecting cython_bbox
  Using cached cython_bbox-0.1.3.tar.gz (41 kB)
    ERROR: Command errored out with exit status 1:
     command: 'E:\Anaconda3\install\envs\wind_paddle\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-01po4sjw\\cython-bbox_dacb8880e413437c88133137b86d4f7b\\setup.py'"'"'; __file__='"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-01po4sjw\\cython-bbox_dacb8880e413437c88133137b86d4f7b\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\BIM\AppData\Local\Temp\pip-pip-egg-info-up_eedh7'
         cwd: C:\Users\BIM\AppData\Local\Temp\pip-install-01po4sjw\cython-bbox_dacb8880e413437c88133137b86d4f7b\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\BIM\AppData\Local\Temp\pip-install-01po4sjw\cython-bbox_dacb8880e413437c88133137b86d4f7b\setup.py", line 10, in 
        from Cython.Build import cythonize
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/fa/b9/fc7d60e8c3b29cc0ff24a3bb3c4b7457e10b7610fbb2893741b623487b34/cython_bbox-0.1.3.tar.gz#sha256=82e2d887534ecc10d3507489a05b11259f3baacd29eee37e6d8c97e1ffb16554 (from https://pypi.org/simple/cython-bbox/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Using cached cython_bbox-0.1.2.tar.gz (40 kB)
    ERROR: Command errored out with exit status 1:
     command: 'E:\Anaconda3\install\envs\wind_paddle\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-01po4sjw\\cython-bbox_15889c5335b64e6da5724b0af32010ea\\setup.py'"'"'; __file__='"'"'C:\\Users\\BIM\\AppData\\Local\\Temp\\pip-install-01po4sjw\\cython-bbox_15889c5335b64e6da5724b0af32010ea\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\BIM\AppData\Local\Temp\pip-pip-egg-info-xctztxxq'
         cwd: C:\Users\BIM\AppData\Local\Temp\pip-install-01po4sjw\cython-bbox_15889c5335b64e6da5724b0af32010ea\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\BIM\AppData\Local\Temp\pip-install-01po4sjw\cython-bbox_15889c5335b64e6da5724b0af32010ea\setup.py", line 10, in 
        from Cython.Build import cythonize
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/be/50/21618d0e79554dadd44383a1448ae667941950e391e2d9f7cf1986a0a512/cython_bbox-0.1.2.tar.gz#sha256=81740b3b5e88be8ab12165fc6e176094ac71ef8bc12a27588fe94d85b6128c1c (from https://pypi.org/simple/cython-bbox/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cython_bbox
ERROR: No matching distribution found for cython_bbox

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

发现缺少 cpython_bbox库,在官网上下载:https://pypi.org/project/cython-bbox/#files  源码,解压,进入目录下安装:

(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>python setup.py build_ext install
running build_ext
building 'cython_bbox' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
E:\VisualStudio_2015\install\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IE:\Anaconda3\install\envs\wind_paddle\lib\site-packages\numpy\core\include -IE:\Anaconda3\install\envs\wind_paddle\include -IE:\Anaconda3\install\envs\wind_paddle\include -IE:\VisualStudio_2015\install\VC\INCLUDE -IE:\VisualStudio_2015\install\VC\ATLMFC\INCLUDE "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /Tcsrc/cython_bbox.c /Fobuild\temp.win-amd64-3.7\Release\src/cython_bbox.obj gcc
cl: 命令行 warning D9024 :无法识别的源文件类型“gcc”,假定为对象文件
cl: 命令行 warning D9027 :源文件“gcc”被忽略
cython_bbox.c
e:\anaconda3\install\envs\wind_paddle\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
src/cython_bbox.c(1953): warning C4244: “=”: 从“npy_intp”转换到“unsigned int”,可能丢失数据
src/cython_bbox.c(1962): warning C4244: “=”: 从“npy_intp”转换到“unsigned int”,可能丢失数据
creating E:\Anaconda3\cython_bbox-0.1.3\build\lib.win-amd64-3.7
E:\VisualStudio_2015\install\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:E:\Anaconda3\install\envs\wind_paddle\libs /LIBPATH:E:\Anaconda3\install\envs\wind_paddle\PCbuild\amd64 /LIBPATH:E:\VisualStudio_2015\install\VC\LIB\amd64 /LIBPATH:E:\VisualStudio_2015\install\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" /EXPORT:PyInit_cython_bbox build\temp.win-amd64-3.7\Release\src/cython_bbox.obj /OUT:build\lib.win-amd64-3.7\cython_bbox.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\cython_bbox.cp37-win_amd64.lib
cython_bbox.obj : warning LNK4197: 多次指定导出“PyInit_cython_bbox”;使用第一个规范
  正在创建库 build\temp.win-amd64-3.7\Release\src\cython_bbox.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\src\cython_bbox.cp37-win_amd64.exp
正在生成代码
已完成代码的生成
running install
running bdist_egg
running egg_info
writing cython_bbox.egg-info\PKG-INFO
writing dependency_links to cython_bbox.egg-info\dependency_links.txt
writing top-level names to cython_bbox.egg-info\top_level.txt
reading manifest file 'cython_bbox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cython_bbox.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
copying build\lib.win-amd64-3.7\cython_bbox.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg
creating stub loader for cython_bbox.cp37-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\cython_bbox.py to cython_bbox.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying cython_bbox.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying cython_bbox.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying cython_bbox.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying cython_bbox.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.cython_bbox.cpython-37: module references __file__
creating dist
creating 'dist\cython_bbox-0.1.3-py3.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing cython_bbox-0.1.3-py3.7-win-amd64.egg
creating e:\anaconda3\install\envs\wind_paddle\lib\site-packages\cython_bbox-0.1.3-py3.7-win-amd64.egg
Extracting cython_bbox-0.1.3-py3.7-win-amd64.egg to e:\anaconda3\install\envs\wind_paddle\lib\site-packages
Adding cython-bbox 0.1.3 to easy-install.pth file

Installed e:\anaconda3\install\envs\wind_paddle\lib\site-packages\cython_bbox-0.1.3-py3.7-win-amd64.egg
Processing dependencies for cython-bbox==0.1.3
Finished processing dependencies for cython-bbox==0.1.3

(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>

cpython_bbox库安装成功

再次配置环境:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>pip install -r requirements.txt
Requirement already satisfied: tqdm in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 1)) (4.63.1)
Requirement already satisfied: typeguard in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 2)) (2.13.3)
Requirement already satisfied: visualdl>=2.1.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 3)) (2.2.3)
Requirement already satisfied: opencv-python in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 4)) (4.5.5.64)
Requirement already satisfied: PyYAML in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 5)) (6.0)
Requirement already satisfied: shapely in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 6)) (1.8.1.post1)
Requirement already satisfied: scipy in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 7)) (1.7.3)
Requirement already satisfied: terminaltables in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 8)) (3.1.10)
Requirement already satisfied: Cython in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 9)) (0.29.28)
Requirement already satisfied: pycocotools in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 10)) (2.0.4)
Requirement already satisfied: setuptools>=42.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 12)) (52.0.0.post20210125)
Requirement already satisfied: lap in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 13)) (0.4.0)
Requirement already satisfied: sklearn in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 14)) (0.0)
Requirement already satisfied: motmetrics in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 15)) (1.2.0)
Requirement already satisfied: openpyxl in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from -r requirements.txt (line 16)) (3.0.9)
Requirement already satisfied: cython_bbox in e:\anaconda3\install\envs\wind_paddle\lib\site-packages\cython_bbox-0.1.3-py3.7-win-amd64.egg (from -r requirements.txt (line 17)) (0.1.3)
Requirement already satisfied: protobuf>=3.11.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (3.15.8)
Requirement already satisfied: flask>=1.1.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (2.0.3)
Requirement already satisfied: six>=1.14.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (1.15.0)
Requirement already satisfied: pre-commit in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (2.17.0)
Requirement already satisfied: shellcheck-py in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (0.8.0.4)
Requirement already satisfied: matplotlib in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (3.5.1)
Requirement already satisfied: bce-python-sdk in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (0.8.64)
Requirement already satisfied: requests in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (2.25.1)
Requirement already satisfied: flake8>=3.7.9 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (4.0.1)
Requirement already satisfied: pandas in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (1.1.5)
Requirement already satisfied: numpy in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (1.19.3)
Requirement already satisfied: Pillow>=7.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (9.0.1)
Requirement already satisfied: Flask-Babel>=1.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (line 3)) (2.0.0)
Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flake8>=3.7.9->visualdl>=2.1.0->-r requirements.txt (line 3)) (0.6.1)
Requirement already satisfied: pycodestyle<2.9.0,>=2.8.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flake8>=3.7.9->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.8.0)
Requirement already satisfied: importlib-metadata<4.3 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flake8>=3.7.9->visualdl>=2.1.0->-r requirements.txt (line 3)) (4.2.0)
Requirement already satisfied: pyflakes<2.5.0,>=2.4.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flake8>=3.7.9->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.4.0)
Requirement already satisfied: Jinja2>=3.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flask>=1.1.1->visualdl>=2.1.0->-r requirements.txt (line 3)) (3.0.3)
Requirement already satisfied: click>=7.1.2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flask>=1.1.1->visualdl>=2.1.0->-r requirements.txt (line 3)) (8.0.4)
Requirement already satisfied: Werkzeug>=2.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flask>=1.1.1->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.0.3)
Requirement already satisfied: itsdangerous>=2.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from flask>=1.1.1->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.1.1)
Requirement already satisfied: colorama in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from click>=7.1.2->flask>=1.1.1->visualdl>=2.1.0->-r requirements.txt (line 3)) (0.4.4)
Requirement already satisfied: pytz in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from Flask-Babel>=1.0.0->visualdl>=2.1.0->-r requirements.txt (line 3)) (2022.1)
Requirement already satisfied: Babel>=2.3 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from Flask-Babel>=1.0.0->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.9.1)
Requirement already satisfied: typing-extensions>=3.6.4 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from importlib-metadata<4.3->flake8>=3.7.9->visualdl>=2.1.0->-r requirements.txt (line 3)) (4.1.1)
Requirement already satisfied: zipp>=0.5 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from importlib-metadata<4.3->flake8>=3.7.9->visualdl>=2.1.0->-r requirements.txt (line 3)) (3.7.0)
Requirement already satisfied: MarkupSafe>=2.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from Jinja2>=3.0->flask>=1.1.1->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.1.1)
Requirement already satisfied: flake8-import-order in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from motmetrics->-r requirements.txt (line 15)) (0.18.1)
Requirement already satisfied: xmltodict>=0.12.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from motmetrics->-r requirements.txt (line 15)) (0.12.0)
Requirement already satisfied: pytest in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from motmetrics->-r requirements.txt (line 15)) (7.1.1)
Requirement already satisfied: pytest-benchmark in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from motmetrics->-r requirements.txt (line 15)) (3.4.1)
Requirement already satisfied: python-dateutil>=2.7.3 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pandas->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.8.2)
Requirement already satisfied: et-xmlfile in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from openpyxl->-r requirements.txt (line 16)) (1.1.0)
Requirement already satisfied: pyparsing>=2.2.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from matplotlib->visualdl>=2.1.0->-r requirements.txt (line 3)) (3.0.7)
Requirement already satisfied: fonttools>=4.22.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from matplotlib->visualdl>=2.1.0->-r requirements.txt (line 3)) (4.31.2)
Requirement already satisfied: kiwisolver>=1.0.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from matplotlib->visualdl>=2.1.0->-r requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: packaging>=20.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from matplotlib->visualdl>=2.1.0->-r requirements.txt (line 3)) (21.3)
Requirement already satisfied: cycler>=0.10 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from matplotlib->visualdl>=2.1.0->-r requirements.txt (line 3)) (0.11.0)
Requirement already satisfied: scikit-learn in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from sklearn->-r requirements.txt (line 14)) (1.0.2)
Requirement already satisfied: pycryptodome>=3.8.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from bce-python-sdk->visualdl>=2.1.0->-r requirements.txt (line 3)) (3.14.1)
Requirement already satisfied: future>=0.6.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from bce-python-sdk->visualdl>=2.1.0->-r requirements.txt (line 3)) (0.18.2)
Requirement already satisfied: cfgv>=2.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (3.3.1)
Requirement already satisfied: virtualenv>=20.0.8 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (20.13.4)
Requirement already satisfied: toml in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (0.10.2)
Requirement already satisfied: identify>=1.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.4.12)
Requirement already satisfied: nodeenv>=0.11.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (1.6.0)
Requirement already satisfied: distlib<1,>=0.3.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from virtualenv>=20.0.8->pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (0.3.4)
Requirement already satisfied: filelock<4,>=3.2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from virtualenv>=20.0.8->pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (3.6.0)
Requirement already satisfied: platformdirs<3,>=2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from virtualenv>=20.0.8->pre-commit->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.5.1)
Requirement already satisfied: iniconfig in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest->motmetrics->-r requirements.txt (line 15)) (1.1.1)
Requirement already satisfied: attrs>=19.2.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest->motmetrics->-r requirements.txt (line 15)) (21.4.0)
Requirement already satisfied: pluggy<2.0,>=0.12 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest->motmetrics->-r requirements.txt (line 15)) (1.0.0)
Requirement already satisfied: atomicwrites>=1.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest->motmetrics->-r requirements.txt (line 15)) (1.4.0)
Requirement already satisfied: py>=1.8.2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest->motmetrics->-r requirements.txt (line 15)) (1.11.0)
Requirement already satisfied: tomli>=1.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest->motmetrics->-r requirements.txt (line 15)) (2.0.1)
Requirement already satisfied: py-cpuinfo in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from pytest-benchmark->motmetrics->-r requirements.txt (line 15)) (8.0.0)
Requirement already satisfied: chardet<5,>=3.0.2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->visualdl>=2.1.0->-r requirements.txt (line 3)) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->visualdl>=2.1.0->-r requirements.txt (line 3)) (1.26.4)
Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests->visualdl>=2.1.0->-r requirements.txt (line 3)) (2020.12.5)
Requirement already satisfied: threadpoolctl>=2.0.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from scikit-learn->sklearn->-r requirements.txt (line 14)) (3.1.0)
Requirement already satisfied: joblib>=0.11 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from scikit-learn->sklearn->-r requirements.txt (line 14)) (1.1.0)

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

这次很顺利,所依赖的库全部配置成功。

查看:

pip list
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>pip list
Package             Version
------------------- -------------------
astor               0.8.1
atomicwrites        1.4.0
attrs               21.4.0
Babel               2.9.1
bce-python-sdk      0.8.64
certifi             2020.12.5
cfgv                3.3.1
chardet             4.0.0
click               8.0.4
colorama            0.4.4
cPython             0.0.6
cycler              0.11.0
Cython              0.29.28
cython-bbox         0.1.3
decorator           5.0.7
distlib             0.3.4
et-xmlfile          1.1.0
filelock            3.6.0
flake8              4.0.1
flake8-import-order 0.18.1
Flask               2.0.3
Flask-Babel         2.0.0
fonttools           4.31.2
future              0.18.2
gast                0.3.3
identify            2.4.12
idna                2.10
importlib-metadata  4.2.0
iniconfig           1.1.1
itsdangerous        2.1.1
Jinja2              3.0.3
joblib              1.1.0
kiwisolver          1.4.0
lap                 0.4.0
MarkupSafe          2.1.1
matplotlib          3.5.1
mccabe              0.6.1
motmetrics          1.2.0
nodeenv             1.6.0
numpy               1.19.3
opencv-python       4.5.5.64
openpyxl            3.0.9
packaging           21.3
paddledet           2.3.0
paddlepaddle-gpu    2.0.2.post110
pandas              1.1.5
Pillow              9.0.1
pip                 21.0.1
platformdirs        2.5.1
pluggy              1.0.0
pre-commit          2.17.0
protobuf            3.15.8
py                  1.11.0
py-cpuinfo          8.0.0
pycocotools         2.0.4
pycodestyle         2.8.0
pycryptodome        3.14.1
pyflakes            2.4.0
pymongo             4.0.2
pyparsing           3.0.7
pytest              7.1.1
pytest-benchmark    3.4.1
python-dateutil     2.8.2
pytz                2022.1
PyYAML              6.0
requests            2.25.1
scikit-learn        1.0.2
scipy               1.7.3
setuptools          52.0.0.post20210125
Shapely             1.8.1.post1
shellcheck-py       0.8.0.4
six                 1.15.0
sklearn             0.0
terminaltables      3.1.10
threadpoolctl       3.1.0
toml                0.10.2
tomli               2.0.1
tqdm                4.63.1
typeguard           2.13.3
typing-extensions   4.1.1
urllib3             1.26.4
virtualenv          20.13.4
visualdl            2.2.3
Werkzeug            2.0.3
wheel               0.36.2
wincertstore        0.2
xmltodict           0.12.0
zipp                3.7.0

(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>
(wind_paddle) E:\Anaconda3\cython_bbox-0.1.3>


(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

发现paddlepaddle-gpu库版本有点低了,这是去奶奶配置的,现在PaddleDetection需要高一点的版本,所以对paddlepaddle-gpu库升级:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>python -m pip install paddlepaddle-gpu==2.2.2.post112 -f https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html
Looking in links: https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html
Collecting paddlepaddle-gpu==2.2.2.post112
  Downloading https://paddle-wheel.bj.bcebos.com/2.2.2/windows/windows-gpu-cuda11.2-cudnn8-mkl-avx/paddlepaddle_gpu-2.2.2.post112-cp37-cp37m-win_amd64.whl (376.7 MB)
     |████████████████████████████████| 376.7 MB 6.8 MB/s
Requirement already satisfied: numpy<=1.19.3,>=1.13 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (1.19.3)
Requirement already satisfied: six in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (1.15.0)
Requirement already satisfied: Pillow in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (9.0.1)
Requirement already satisfied: decorator in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (5.0.7)
Requirement already satisfied: astor in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (0.8.1)
Requirement already satisfied: protobuf>=3.1.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (3.15.8)
Requirement already satisfied: requests>=2.20.0 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from paddlepaddle-gpu==2.2.2.post112) (2.25.1)
Requirement already satisfied: chardet<5,>=3.0.2 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests>=2.20.0->paddlepaddle-gpu==2.2.2.post112) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests>=2.20.0->paddlepaddle-gpu==2.2.2.post112) (1.26.4)
Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests>=2.20.0->paddlepaddle-gpu==2.2.2.post112) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in e:\anaconda3\install\envs\wind_paddle\lib\site-packages (from requests>=2.20.0->paddlepaddle-gpu==2.2.2.post112) (2.10)
Installing collected packages: paddlepaddle-gpu
  Attempting uninstall: paddlepaddle-gpu
    Found existing installation: paddlepaddle-gpu 2.0.2.post110
    Uninstalling paddlepaddle-gpu-2.0.2.post110:
      Successfully uninstalled paddlepaddle-gpu-2.0.2.post110
Successfully installed paddlepaddle-gpu-2.2.2.post112

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

paddlepaddle-gpu库升级成功。

再次查看版本:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>pip list
Package             Version
------------------- -------------------
astor               0.8.1
atomicwrites        1.4.0
attrs               21.4.0
Babel               2.9.1
bce-python-sdk      0.8.64
certifi             2020.12.5
cfgv                3.3.1
chardet             4.0.0
click               8.0.4
colorama            0.4.4
cPython             0.0.6
cycler              0.11.0
Cython              0.29.28
cython-bbox         0.1.3
decorator           5.0.7
distlib             0.3.4
et-xmlfile          1.1.0
filelock            3.6.0
flake8              4.0.1
flake8-import-order 0.18.1
Flask               2.0.3
Flask-Babel         2.0.0
fonttools           4.31.2
future              0.18.2
gast                0.3.3
identify            2.4.12
idna                2.10
importlib-metadata  4.2.0
iniconfig           1.1.1
itsdangerous        2.1.1
Jinja2              3.0.3
joblib              1.1.0
kiwisolver          1.4.0
lap                 0.4.0
MarkupSafe          2.1.1
matplotlib          3.5.1
mccabe              0.6.1
motmetrics          1.2.0
nodeenv             1.6.0
numpy               1.19.3
opencv-python       4.5.5.64
openpyxl            3.0.9
packaging           21.3
paddledet           2.3.0
paddlepaddle-gpu    2.2.2.post112
pandas              1.1.5
Pillow              9.0.1
pip                 21.0.1
platformdirs        2.5.1
pluggy              1.0.0
pre-commit          2.17.0
protobuf            3.15.8
py                  1.11.0
py-cpuinfo          8.0.0
pycocotools         2.0.4
pycodestyle         2.8.0
pycryptodome        3.14.1
pyflakes            2.4.0
pymongo             4.0.2
pyparsing           3.0.7
pytest              7.1.1
pytest-benchmark    3.4.1
python-dateutil     2.8.2
pytz                2022.1
PyYAML              6.0
requests            2.25.1
scikit-learn        1.0.2
scipy               1.7.3
setuptools          52.0.0.post20210125
Shapely             1.8.1.post1
shellcheck-py       0.8.0.4
six                 1.15.0
sklearn             0.0
terminaltables      3.1.10
threadpoolctl       3.1.0
toml                0.10.2
tomli               2.0.1
tqdm                4.63.1
typeguard           2.13.3
typing-extensions   4.1.1
urllib3             1.26.4
virtualenv          20.13.4
visualdl            2.2.3
Werkzeug            2.0.3
wheel               0.36.2
wincertstore        0.2
xmltodict           0.12.0
zipp                3.7.0

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>

paddlepaddle-gpu2.2.2了。

下载coco 数据集

python dataset/coco/download_coco.py  # coco数据集下载脚本

修改部分配置参数:

本项目选取yolov3_darknet.yml作为本项目的训练配置文件。该配置文件选取的是YOLOv3_darknet模型,骨干网络为DarkNet,yolo_head为YOLOv3Head
本项目演示使用COCO的val数据集训练,对配置文件做如下修改(使用train数据集不需要做以下修改,可以直接一键式启动训练),work目录下提供了一个修改好的配置文件,也可在configs目录(即data/PaddleDetection/configs目录)下按照如下方式自行修改以下配置文件:

  1. configs/yolov3/_base_/optimizer_270e.yml 中 epoch 修改为100, 减少PiecewiseDecaymilestones6080,由于使用单卡训练,将LearningRate.base_lr减少8倍到0.000125
  2. configs/datasets/coco_detection.yml 中 TrainDataset 中 anno_pathimage_dirval数据集路径
  3. configs/yolov3/_base_/yolov3_reader.yml 中 TrainReader.mixup_epoch 修改为0, worker_num修改为4

configs/yolov3/yolov3_darknet53_270e_coco.yml文件配置好之后,就可以进行一键式模型训练。

运行训练程序,开始训练:

(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>
(wind_paddle) F:\PaddlePaddle_Project\PaddleDetection-release-2.3>python tools/train.py -c configs/yolov3/yolov3_darknet53_100e_coco.yml --eval
loading annotations into memory...
Done (t=13.05s)
creating index...
index created!
[03/24 21:13:34] ppdet.data.source.coco WARNING: Found an invalid bbox in annotations: im_id: 200365, area: 0.0 x1: 296.65, y1: 388.33, x2: 297.67999999999995, y2: 388.33.
[03/24 21:13:48] ppdet.data.source.coco WARNING: Found an invalid bbox in annotations: im_id: 550395, area: 0.0 x1: 9.98, y1: 188.56, x2: 15.52, y2: 188.56.
W0324 21:13:51.248656 11360 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.3, Runtime API Version: 11.2
W0324 21:13:51.311144 11360 device_context.cc:465] device: 0, cuDNN Version: 8.2.
[03/24 21:13:55] ppdet.utils.download INFO: Downloading DarkNet53_pretrained.pdparams from https://paddledet.bj.bcebos.com/models/pretrained/DarkNet53_pretrained.pdparams
  2%|██▊                                                                                                                                   | 3285/158704 [00:04<01:44, 1483.27KB/s]

正在训练中,希望能训练出一个满意的模型!

参考:https://www.paddlepaddle.org.cn/tutorials/projectdetail/2538218

############################