首页 Paddle框架 帖子详情
PaddleDetection 验证报错
收藏
快速回复
Paddle框架 问答模型训练 3144 8
PaddleDetection 验证报错
收藏
快速回复
Paddle框架 问答模型训练 3144 8

带--eval 运行后报错

D:\PaddleDetection-release-2.2>python tools/train.py -c configs/dota/s2anet_1x_spine.yml --eval -o use_gpu=true --use_vdl=True --vdl_log_dir=Vdl_dir/log
Traceback (most recent call last):
File "tools/train.py", line 32, in
from ppdet.core.workspace import load_config, merge_config
File "D:\PaddleDetection-release-2.2\ppdet\__init__.py", line 15, in
from . import (core, data, engine, modeling, model_zoo, optimizer, metrics,
File "D:\PaddleDetection-release-2.2\ppdet\data\__init__.py", line 15, in
from . import source
File "D:\PaddleDetection-release-2.2\ppdet\data\source\__init__.py", line 15, in
from . import coco
File "D:\PaddleDetection-release-2.2\ppdet\data\source\coco.py", line 17, in
from ppdet.core.workspace import register, serializable
File "D:\PaddleDetection-release-2.2\ppdet\core\workspace.py", line 23, in
import yaml
ModuleNotFoundError: No module named 'yaml'

D:\PaddleDetection-release-2.2>
D:\PaddleDetection-release-2.2>python tools/train.py -c configs/dota/s2anet_1x_spine.yml --eval -o use_gpu=true --use_vdl=True --vdl_log_dir=Vdl_dir/log
Traceback (most recent call last):
File "tools/train.py", line 32, in
from ppdet.core.workspace import load_config, merge_config
File "D:\PaddleDetection-release-2.2\ppdet\__init__.py", line 15, in
from . import (core, data, engine, modeling, model_zoo, optimizer, metrics,
File "D:\PaddleDetection-release-2.2\ppdet\data\__init__.py", line 15, in
from . import source
File "D:\PaddleDetection-release-2.2\ppdet\data\source\__init__.py", line 15, in
from . import coco
File "D:\PaddleDetection-release-2.2\ppdet\data\source\coco.py", line 18, in
from .dataset import DetDataset
File "D:\PaddleDetection-release-2.2\ppdet\data\source\dataset.py", line 24, in
from ppdet.utils.download import get_dataset_path
File "D:\PaddleDetection-release-2.2\ppdet\utils\download.py", line 26, in
import tqdm
ModuleNotFoundError: No module named 'tqdm'

D:\PaddleDetection-release-2.2>pip install -r requirements.txt -i https://pypi.douban.com/simple
Looking in indexes: https://pypi.douban.com/simple
Requirement already satisfied: tqdm in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from -r requirements.txt (line 1)) (4.62.3)
Requirement already satisfied: typeguard in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\typeguard-2.12.1-py3.7.egg (from -r requi
rements.txt (line 2)) (2.12.1)
Requirement already satisfied: visualdl>=2.1.0 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\visualdl-2.2.1-py3.7.egg (from -r r
equirements.txt (line 3)) (2.2.1)
Collecting opencv-python
Using cached https://pypi.doubanio.com/packages/0e/08/dab39e396a38affb13d6daf421066203695d91c2c3197f753fa84bbac8bd/opencv_python-4.5.3.56-cp37-cp37m-win_amd64.whl
(34.9 MB)
Requirement already satisfied: PyYAML in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from -r requirements.txt (line 5)) (5.4.1)
Collecting shapely
Downloading https://pypi.doubanio.com/packages/00/b6/71bd30edeab05060e8fbfb16bf2a074364b037615cd823945e0052d26484/Shapely-1.7.1-cp37-cp37m-win_amd64.whl (1.0 MB)
|████████████████████████████████| 1.0 MB 2.2 MB/s
Collecting scipy
Downloading https://pypi.doubanio.com/packages/0c/d2/17323a97b33951ee8d74f0f416e5b446dc5f57cb2de659ee09e72e7f4b55/scipy-1.7.1-cp37-cp37m-win_amd64.whl (33.6 MB)
|████████████████████████████████| 33.6 MB 6.8 MB/s
Collecting terminaltables
Using cached https://pypi.doubanio.com/packages/9b/c4/4a21174f32f8a7e1104798c445dacdc1d4df86f2f26722767034e4de4bff/terminaltables-3.1.0.tar.gz (12 kB)
Requirement already satisfied: Cython in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from -r requirements.txt (line 9)) (0.29.24
)
Collecting pycocotools
Downloading https://pypi.doubanio.com/packages/de/df/056875d697c45182ed6d2ae21f62015896fdb841906fe48e7268e791c467/pycocotools-2.0.2.tar.gz (23 kB)
Requirement already satisfied: setuptools>=42.0.0 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from -r requirements.txt (line
12)) (47.1.0)
Requirement already satisfied: lap in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\lap-0.4.0-py3.7-win-amd64.egg (from -r requirem
ents.txt (line 13)) (0.4.0)
Requirement already satisfied: sklearn in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\sklearn-0.0-py3.7.egg (from -r requirements
.txt (line 14)) (0.0)
Requirement already satisfied: motmetrics in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\motmetrics-1.2.0-py3.7.egg (from -r requ
irements.txt (line 15)) (1.2.0)
Requirement already satisfied: openpyxl in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\openpyxl-3.0.9-py3.7.egg (from -r requirem
ents.txt (line 16)) (3.0.9)
Requirement already satisfied: cython_bbox in c:\users\administrator\appdata\local\programs\python\python37\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: colorama; platform_system == "Windows" in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from tqdm->
-r requirements.txt (line 1)) (0.4.4)
Collecting Flask-Babel>=1.0.0
Downloading https://pypi.doubanio.com/packages/ab/3e/02331179ffab8b79e0383606a028b6a60fb1b4419b84935edd43223406a0/Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB)
Requirement already satisfied: Pillow>=7.0.0 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from visualdl>=2.1.0->-r requirement
s.txt (line 3)) (8.3.2)
Collecting bce-python-sdk
Downloading https://pypi.doubanio.com/packages/3f/3e/d7a44d8f43aba0de52d56600fce8ab9ce107fe074dffc36515402bf8983c/bce_python_sdk-0.8.62-py3-none-any.whl (197 kB)
|████████████████████████████████| 197 kB 1.1 MB/s
Collecting flake8>=3.7.9
Downloading https://pypi.doubanio.com/packages/fc/80/35a0716e5d5101e643404dabd20f07f5528a21f3ef4032d31a49c913237b/flake8-3.9.2-py2.py3-none-any.whl (73 kB)
|████████████████████████████████| 73 kB 325 kB/s
Collecting flask>=1.1.1
Downloading https://pypi.doubanio.com/packages/54/4f/1b294c1a4ab7b2ad5ca5fc4a9a65a22ef1ac48be126289d97668852d4ab3/Flask-2.0.1-py3-none-any.whl (94 kB)
|████████████████████████████████| 94 kB ...
Collecting matplotlib
Downloading https://pypi.doubanio.com/packages/b8/e7/1ec3c8b52c4b66570fd46cb37a8b33b19c878a413f3f8726dd930291b858/matplotlib-3.4.3-cp37-cp37m-win_amd64.whl (7.2 MB
)
|████████████████████████████████| 7.2 MB ...
Requirement already satisfied: numpy in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt (l
ine 3)) (1.17.0)
Collecting pandas
Downloading https://pypi.doubanio.com/packages/4d/16/8b4b0a04671c69e46ee15f42d288785e7cd20bf419db13ace92cf314051e/pandas-1.3.3-cp37-cp37m-win_amd64.whl (10.0 MB)
|████████████████████████████████| 10.0 MB 2.2 MB/s
Collecting pre-commit
Downloading https://pypi.doubanio.com/packages/b4/f1/40ce9ec975e5b6b2825239bdf7bb48c767b1a8ed3912a71d80e9c911cce3/pre_commit-2.15.0-py2.py3-none-any.whl (191 kB)
|████████████████████████████████| 191 kB 930 kB/s
Requirement already satisfied: protobuf>=3.11.0 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from visualdl>=2.1.0->-r requirem
ents.txt (line 3)) (3.18.0)
Requirement already satisfied: requests in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from visualdl>=2.1.0->-r requirements.txt
(line 3)) (2.26.0)
Collecting shellcheck-py
Downloading https://pypi.doubanio.com/packages/e5/c6/724a586738ffbc4529e05a8842bd23a969916e9094d5dd6aeebc2f3d7fcf/shellcheck_py-0.7.2.1-py2.py3-none-win_amd64.whl
(1.4 MB)
|████████████████████████████████| 1.4 MB 2.2 MB/s
Requirement already satisfied: six>=1.14.0 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from visualdl>=2.1.0->-r requirements.
txt (line 3)) (1.16.0)
Collecting scikit-learn
Downloading https://pypi.doubanio.com/packages/3f/a4/9ac96921dcd7b36467ec7300ab1f9f5c98cb1a96fea35de467deae493c71/scikit_learn-1.0-cp37-cp37m-win_amd64.whl (7.1 MB
)
|████████████████████████████████| 7.1 MB ...
Collecting flake8-import-order
Using cached https://pypi.doubanio.com/packages/ab/52/cf2d6e2c505644ca06de2f6f3546f1e4f2b7be34246c9e0757c6048868f9/flake8_import_order-0.18.1-py2.py3-none-any.whl
(15 kB)
Collecting pytest
Downloading https://pypi.doubanio.com/packages/40/76/86f886e750b81a4357b6ed606b2bcf0ce6d6c27ad3c09ebf63ed674fc86e/pytest-6.2.5-py3-none-any.whl (280 kB)
|████████████████████████████████| 280 kB ...
Collecting pytest-benchmark
Using cached https://pypi.doubanio.com/packages/2c/60/423a63fb190a0483d049786a121bd3dfd7d93bb5ff1bb5b5cd13e5df99a7/pytest_benchmark-3.4.1-py2.py3-none-any.whl (50
kB)
Collecting xmltodict>=0.12.0
Downloading https://pypi.doubanio.com/packages/28/fd/30d5c1d3ac29ce229f6bdc40bbc20b28f716e8b363140c26eff19122d8a5/xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Collecting et-xmlfile
Downloading https://pypi.doubanio.com/packages/96/c2/3dd434b0108730014f1b96fd286040dc3bcb70066346f7e01ec2ac95865f/et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Collecting pytz
Downloading https://pypi.doubanio.com/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 6.8 MB/s
Collecting Babel>=2.3
Downloading https://pypi.doubanio.com/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
|████████████████████████████████| 8.8 MB ...
Collecting Jinja2>=2.5
Downloading https://pypi.doubanio.com/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB ...
Collecting future>=0.6.0
Downloading https://pypi.doubanio.com/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB ...
Collecting pycryptodome>=3.8.0
Downloading https://pypi.doubanio.com/packages/5d/f9/1a312576ae51d3d2df5aa0b9718ac588ad40c5d4db6879848341d477037a/pycryptodome-3.10.4-cp35-abi3-win_amd64.whl (1.8
MB)
|████████████████████████████████| 1.8 MB 6.8 MB/s
Collecting pycodestyle<2.8.0,>=2.7.0
Downloading https://pypi.doubanio.com/packages/de/cc/227251b1471f129bc35e966bb0fceb005969023926d744139642d847b7ae/pycodestyle-2.7.0-py2.py3-none-any.whl (41 kB)
|████████████████████████████████| 41 kB 3.4 MB/s
Collecting mccabe<0.7.0,>=0.6.0
Downloading https://pypi.doubanio.com/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting importlib-metadata; python_version < "3.8"
Downloading https://pypi.doubanio.com/packages/71/c2/cb1855f0b2a0ae9ccc9b69f150a7aebd4a8d815bd951e74621c4154c52a8/importlib_metadata-4.8.1-py3-none-any.whl (17 kB)

Collecting pyflakes<2.4.0,>=2.3.0
Downloading https://pypi.doubanio.com/packages/6c/11/2a745612f1d3cbbd9c69ba14b1b43a35a2f5c3c81cd0124508c52c64307f/pyflakes-2.3.1-py2.py3-none-any.whl (68 kB)
|████████████████████████████████| 68 kB 3.4 MB/s
Collecting itsdangerous>=2.0
Downloading https://pypi.doubanio.com/packages/9c/96/26f935afba9cd6140216da5add223a0c465b99d0f112b68a4ca426441019/itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting Werkzeug>=2.0
Downloading https://pypi.doubanio.com/packages/bd/24/11c3ea5a7e866bf2d97f0501d0b4b1c9bbeade102bb4b588f0d2919a5212/Werkzeug-2.0.1-py3-none-any.whl (288 kB)
|████████████████████████████████| 288 kB ...
Collecting click>=7.1.2
Downloading https://pypi.doubanio.com/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB ...
Collecting cycler>=0.10
Downloading https://pypi.doubanio.com/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting pyparsing>=2.2.1
Downloading https://pypi.doubanio.com/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB 4.8 MB/s
Collecting python-dateutil>=2.7
Downloading https://pypi.doubanio.com/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 k
B)
|████████████████████████████████| 247 kB ...
Collecting kiwisolver>=1.0.1
Downloading https://pypi.doubanio.com/packages/b9/af/d22a5f1125cf141526e6eb77c800fa29d1f206469d365c5fa6e3803ded2a/kiwisolver-1.3.2-cp37-cp37m-win_amd64.whl (51 kB)

|████████████████████████████████| 51 kB 161 kB/s
Collecting identify>=1.0.0
Downloading https://pypi.doubanio.com/packages/e6/dd/7314f00a77e1625b63f20af2d0f6d63da503ea0675e23d26b8260c1ea0d5/identify-2.2.15-py2.py3-none-any.whl (98 kB)
|████████████████████████████████| 98 kB 753 kB/s
Collecting virtualenv>=20.0.8
Downloading https://pypi.doubanio.com/packages/fe/45/3c419850680999c43f5e3d005e2f54bb3a24184255ebc5244369e49674bd/virtualenv-20.8.1-py2.py3-none-any.whl (5.3 MB)
|████████████████████████████████| 5.3 MB ...
Collecting cfgv>=2.0.0
Downloading https://pypi.doubanio.com/packages/6d/82/0a0ebd35bae9981dea55c06f8e6aaf44a49171ad798795c72c6f64cba4c2/cfgv-3.3.1-py2.py3-none-any.whl (7.3 kB)
Collecting nodeenv>=0.11.1
Downloading https://pypi.doubanio.com/packages/54/73/56c89b343befb9c63e8117294d265458f0ff726fa2abcdc6bb5ec5e66a1a/nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
Collecting toml
Downloading https://pypi.doubanio.com/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from requests->visualdl>=2.1.0-
>-r requirements.txt (line 3)) (2021.5.30)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from requests->visualdl>=2.1
.0->-r requirements.txt (line 3)) (1.26.7)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (from requests-
>visualdl>=2.1.0->-r requirements.txt (line 3)) (3.2)
Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages (f
rom requests->visualdl>=2.1.0->-r requirements.txt (line 3)) (2.0.6)
Collecting threadpoolctl>=2.0.0
Downloading https://pypi.doubanio.com/packages/c6/e8/c216b9b60cbba4642d3ca1bae7a53daa0c24426f662e0e3ce3dc7f6caeaa/threadpoolctl-2.2.0-py3-none-any.whl (12 kB)
Collecting joblib>=0.11
Downloading https://pypi.doubanio.com/packages/55/85/70c6602b078bd9e6f3da4f467047e906525c355a4dacd4f71b97a35d9897/joblib-1.0.1-py3-none-any.whl (303 kB)
|████████████████████████████████| 303 kB ...
Collecting packaging
Downloading https://pypi.doubanio.com/packages/3c/77/e2362b676dc5008d81be423070dd9577fa03be5da2ba1105811900fda546/packaging-21.0-py3-none-any.whl (40 kB)
|████████████████████████████████| 40 kB 2.6 MB/s
Collecting py>=1.8.2
Downloading https://pypi.doubanio.com/packages/67/32/6fe01cfc3d1a27c92fdbcdfc3f67856da8cbadf0dd9f2e18055202b2dc62/py-1.10.0-py2.py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 3.4 MB/s
Collecting attrs>=19.2.0
Downloading https://pypi.doubanio.com/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl (53 kB)
|████████████████████████████████| 53 kB ...
Collecting atomicwrites>=1.0; sys_platform == "win32"
Downloading https://pypi.doubanio.com/packages/2c/a0/da5f49008ec6e9a658dbf5d7310a4debd397bce0b4db03cf8a410066bb87/atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Collecting iniconfig
Downloading https://pypi.doubanio.com/packages/9b/dd/b3c12c6d707058fa947864b67f0c4e0c39ef8610988d7baea9578f3c48f3/iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting pluggy<2.0,>=0.12
Downloading https://pypi.doubanio.com/packages/9e/01/f38e2ff29715251cf25532b9082a1589ab7e4f571ced434f98d0139336dc/pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting py-cpuinfo
Using cached https://pypi.doubanio.com/packages/e6/ba/77120e44cbe9719152415b97d5bfb29f4053ee987d6cb63f55ce7d50fadc/py-cpuinfo-8.0.0.tar.gz (99 kB)
Collecting MarkupSafe>=2.0
Downloading https://pypi.doubanio.com/packages/1b/f6/f774e745edd76eef70bf83062823be0dca95ee9c9211f18aec490892ab33/MarkupSafe-2.0.1-cp37-cp37m-win_amd64.whl (14 kB)

Collecting zipp>=0.5
Downloading https://pypi.doubanio.com/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl (5.7 kB)
Collecting typing-extensions>=3.6.4; python_version < "3.8"
Downloading https://pypi.doubanio.com/packages/74/60/18783336cc7fcdd95dae91d73477830aa53f5d3181ae4fe20491d7fc3199/typing_extensions-3.10.0.2-py3-none-any.whl (26 k
B)
Collecting backports.entry-points-selectable>=1.0.4
Downloading https://pypi.doubanio.com/packages/0c/cd/1e156227cad9f599524eb10af62a2362f872910a49402dbd2bea2dedc91c/backports.entry_points_selectable-1.1.0-py2.py3-n
one-any.whl (6.2 kB)
Collecting distlib<1,>=0.3.1
Downloading https://pypi.doubanio.com/packages/28/36/4bdfb663826d6deedc30b179a7b7876a86943cec9fcfc3f1638489fd8b09/distlib-0.3.3-py2.py3-none-any.whl (496 kB)
|████████████████████████████████| 496 kB 6.4 MB/s
Collecting filelock<4,>=3.0.0
Downloading https://pypi.doubanio.com/packages/e0/a5/23349971aaf2bb56cf0bb084e51b4020098e53465c97eeb730e2e2a1da13/filelock-3.1.0-py2.py3-none-any.whl (8.4 kB)
Collecting platformdirs<3,>=2
Downloading https://pypi.doubanio.com/packages/b1/78/dcfd84d3aabd46a9c77260fb47ea5d244806e4daef83aa6fe5d83adb182c/platformdirs-2.4.0-py3-none-any.whl (14 kB)
Using legacy setup.py install for terminaltables, since package 'wheel' is not installed.
Using legacy setup.py install for pycocotools, since package 'wheel' is not installed.
Using legacy setup.py install for future, since package 'wheel' is not installed.
Using legacy setup.py install for py-cpuinfo, since package 'wheel' is not installed.
ERROR: pandas 1.3.3 has requirement numpy>=1.17.3, but you'll have numpy 1.17.0 which is incompatible.
Installing collected packages: opencv-python, shapely, scipy, terminaltables, cycler, pyparsing, python-dateutil, kiwisolver, matplotlib, pycocotools, MarkupSafe, Ji
nja2, itsdangerous, Werkzeug, zipp, typing-extensions, importlib-metadata, click, flask, pytz, Babel, Flask-Babel, future, pycryptodome, bce-python-sdk, pycodestyle,
mccabe, pyflakes, flake8, pandas, identify, backports.entry-points-selectable, distlib, filelock, platformdirs, virtualenv, cfgv, nodeenv, toml, pre-commit, shellch
eck-py, threadpoolctl, joblib, scikit-learn, flake8-import-order, packaging, py, attrs, atomicwrites, iniconfig, pluggy, pytest, py-cpuinfo, pytest-benchmark, xmltod
ict, et-xmlfile
Running setup.py install for terminaltables ... done
Running setup.py install for pycocotools ... done
Running setup.py install for future ... done
Running setup.py install for py-cpuinfo ... done
Successfully installed Babel-2.9.1 Flask-Babel-2.0.0 Jinja2-3.0.1 MarkupSafe-2.0.1 Werkzeug-2.0.1 atomicwrites-1.4.0 attrs-21.2.0 backports.entry-points-selectable-1
.1.0 bce-python-sdk-0.8.62 cfgv-3.3.1 click-8.0.1 cycler-0.10.0 distlib-0.3.3 et-xmlfile-1.1.0 filelock-3.1.0 flake8-3.9.2 flake8-import-order-0.18.1 flask-2.0.1 fut
ure-0.18.2 identify-2.2.15 importlib-metadata-4.8.1 iniconfig-1.1.1 itsdangerous-2.0.1 joblib-1.0.1 kiwisolver-1.3.2 matplotlib-3.4.3 mccabe-0.6.1 nodeenv-1.6.0 open
cv-python-4.5.3.56 packaging-21.0 pandas-1.3.3 platformdirs-2.4.0 pluggy-1.0.0 pre-commit-2.15.0 py-1.10.0 py-cpuinfo-8.0.0 pycocotools-2.0.2 pycodestyle-2.7.0 pycry
ptodome-3.10.4 pyflakes-2.3.1 pyparsing-2.4.7 pytest-6.2.5 pytest-benchmark-3.4.1 python-dateutil-2.8.2 pytz-2021.1 scikit-learn-1.0 scipy-1.7.1 shapely-1.7.1 shellc
heck-py-0.7.2.1 terminaltables-3.1.0 threadpoolctl-2.2.0 toml-0.10.2 typing-extensions-3.10.0.2 virtualenv-20.8.1 xmltodict-0.12.0 zipp-3.5.0
WARNING: You are using pip version 20.1.1; however, version 21.2.4 is available.
You should consider upgrading via the 'c:\users\administrator\appdata\local\programs\python\python37\python.exe -m pip install --upgrade pip' command.

D:\PaddleDetection-release-2.2>python tools/train.py -c configs/dota/s2anet_1x_spine.yml --eval -o use_gpu=true --use_vdl=True --vdl_log_dir=Vdl_dir/log
D:\PaddleDetection-release-2.2\ppdet\modeling\ops.py:542: DeprecationWarning: invalid escape sequence \_
"""
D:\PaddleDetection-release-2.2\ppdet\modeling\ops.py:1375: DeprecationWarning: invalid escape sequence \l
"""
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
W0928 15:49:11.203294 3316 device_context.cc:404] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.4, Runtime API Version: 10.2
W0928 15:49:11.222311 3316 device_context.cc:422] device: 0, cuDNN Version: 7.6.
[09/28 15:49:15] ppdet.utils.checkpoint INFO: Finish loading model weights: C:\Users\Administrator/.cache/paddle/weights\ResNet50_vd_ssld_v2_pretrained.pdparams
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
import custom_ops error, try install rbox_iou_ops following ppdet/ext_op/README.md No module named 'rbox_iou_ops'

D:\PaddleDetection-release-2.2>python tools/train.py -c configs/dota/s2anet_1x_spine.yml --eval -o use_gpu=true --use_vdl=True --vdl_log_dir=Vdl_dir/log
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
W0928 15:50:34.392117 8004 device_context.cc:404] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.4, Runtime API Version: 10.2
W0928 15:50:34.412135 8004 device_context.cc:422] device: 0, cuDNN Version: 7.6.
[09/28 15:50:38] ppdet.utils.checkpoint INFO: Finish loading model weights: C:\Users\Administrator/.cache/paddle/weights\ResNet50_vd_ssld_v2_pretrained.pdparams
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[09/28 15:50:41] ppdet.engine INFO: Epoch: [0] [ 0/32] learning_rate: 0.003333 fam_cls_loss: 1.237142 fam_reg_loss: 1.374504 odm_cls_loss: 1.178282 odm_reg_loss: 1.3
68945 loss: 5.158874 eta: 13:38:03 batch_cost: 2.5565 data_cost: 0.0010 ips: 0.3912 images/s
[09/28 15:50:55] ppdet.engine INFO: Epoch: [0] [20/32] learning_rate: 0.003600 fam_cls_loss: 1.214454 fam_reg_loss: 1.192971 odm_cls_loss: 1.165017 odm_reg_loss: 1.2
23456 loss: 4.698532 eta: 4:21:43 batch_cost: 0.7319 data_cost: 0.0002 ips: 1.3664 images/s
[09/28 15:51:04] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[09/28 15:51:04] ppdet.engine INFO: Eval iter: 0
[09/28 15:51:05] ppdet.engine INFO: Total sample number: 4, averge FPS: 3.041216775583134
[09/28 15:51:05] ppdet.engine WARNING: Evaluation results empty, this may be due to training iterations being too few or not loading the correct weights.
[09/28 15:51:06] ppdet.engine INFO: Epoch: [1] [ 0/32] learning_rate: 0.003760 fam_cls_loss: 1.115531 fam_reg_loss: 0.801266 odm_cls_loss: 1.140743 odm_reg_loss: 1.1
75973 loss: 4.255508 eta: 4:10:20 batch_cost: 0.7224 data_cost: 0.0002 ips: 1.3842 images/s
[09/28 15:51:20] ppdet.engine INFO: Epoch: [1] [20/32] learning_rate: 0.004027 fam_cls_loss: 1.057243 fam_reg_loss: 0.618059 odm_cls_loss: 1.010921 odm_reg_loss: 0.7
39421 loss: 3.700317 eta: 3:59:49 batch_cost: 0.6984 data_cost: 0.0002 ips: 1.4318 images/s
[09/28 15:51:28] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:51:29] ppdet.engine INFO: Eval iter: 0
[09/28 15:51:29] ppdet.engine INFO: Total sample number: 4, averge FPS: 3.7842502151831807
[09/28 15:51:29] ppdet.engine WARNING: Evaluation results empty, this may be due to training iterations being too few or not loading the correct weights.
[09/28 15:51:30] ppdet.engine INFO: Epoch: [2] [ 0/32] learning_rate: 0.004187 fam_cls_loss: 1.091923 fam_reg_loss: 0.747975 odm_cls_loss: 0.965288 odm_reg_loss: 0.9
03533 loss: 3.603977 eta: 3:57:03 batch_cost: 0.7036 data_cost: 0.0002 ips: 1.4213 images/s
[09/28 15:51:44] ppdet.engine INFO: Epoch: [2] [20/32] learning_rate: 0.004453 fam_cls_loss: 1.073099 fam_reg_loss: 0.659383 odm_cls_loss: 1.037109 odm_reg_loss: 1.1
64573 loss: 3.917665 eta: 3:53:35 batch_cost: 0.7004 data_cost: 0.0001 ips: 1.4278 images/s
[09/28 15:51:53] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:51:53] ppdet.engine INFO: Eval iter: 0
[09/28 15:51:54] ppdet.engine INFO: Total sample number: 4, averge FPS: 3.853582738413388
[09/28 15:51:54] ppdet.engine WARNING: Evaluation results empty, this may be due to training iterations being too few or not loading the correct weights.
[09/28 15:51:54] ppdet.engine INFO: Epoch: [3] [ 0/32] learning_rate: 0.004613 fam_cls_loss: 1.037857 fam_reg_loss: 0.682860 odm_cls_loss: 1.024731 odm_reg_loss: 0.9
74949 loss: 3.724231 eta: 3:52:19 batch_cost: 0.7027 data_cost: 0.0001 ips: 1.4230 images/s
[09/28 15:52:08] ppdet.engine INFO: Epoch: [3] [20/32] learning_rate: 0.004880 fam_cls_loss: 0.996933 fam_reg_loss: 0.498990 odm_cls_loss: 0.986139 odm_reg_loss: 0.7
07003 loss: 3.270152 eta: 3:50:27 batch_cost: 0.6999 data_cost: 0.0002 ips: 1.4287 images/s
[09/28 15:52:17] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:52:17] ppdet.engine INFO: Eval iter: 0
[09/28 15:52:18] ppdet.engine INFO: Total sample number: 4, averge FPS: 3.7842493616120962
[09/28 15:52:18] ppdet.engine WARNING: Evaluation results empty, this may be due to training iterations being too few or not loading the correct weights.
[09/28 15:52:19] ppdet.engine INFO: Epoch: [4] [ 0/32] learning_rate: 0.005040 fam_cls_loss: 1.105944 fam_reg_loss: 0.649619 odm_cls_loss: 1.008118 odm_reg_loss: 0.7
88578 loss: 3.809409 eta: 3:49:46 batch_cost: 0.7036 data_cost: 0.0003 ips: 1.4213 images/s
[09/28 15:52:33] ppdet.engine INFO: Epoch: [4] [20/32] learning_rate: 0.005307 fam_cls_loss: 1.118393 fam_reg_loss: 0.620102 odm_cls_loss: 1.029244 odm_reg_loss: 0.8
43047 loss: 3.669367 eta: 3:48:38 batch_cost: 0.7023 data_cost: 0.0003 ips: 1.4239 images/s
[09/28 15:52:41] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:52:42] ppdet.engine INFO: Eval iter: 0
[09/28 15:52:42] ppdet.engine INFO: Total sample number: 4, averge FPS: 3.8910997775814122
[09/28 15:52:42] ppdet.engine WARNING: Evaluation results empty, this may be due to training iterations being too few or not loading the correct weights.
[09/28 15:52:43] ppdet.engine INFO: Epoch: [5] [ 0/32] learning_rate: 0.005467 fam_cls_loss: 1.097872 fam_reg_loss: 0.636788 odm_cls_loss: 1.050236 odm_reg_loss: 0.9
15670 loss: 3.765637 eta: 3:48:16 batch_cost: 0.7068 data_cost: 0.0003 ips: 1.4148 images/s
[09/28 15:52:57] ppdet.engine INFO: Epoch: [5] [20/32] learning_rate: 0.005733 fam_cls_loss: 1.056859 fam_reg_loss: 0.573235 odm_cls_loss: 0.952704 odm_reg_loss: 0.7
85765 loss: 3.357337 eta: 3:47:32 batch_cost: 0.7055 data_cost: 0.0001 ips: 1.4175 images/s
[09/28 15:53:06] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:53:06] ppdet.engine INFO: Eval iter: 0
[09/28 15:53:07] ppdet.metrics.metrics INFO: The bbox result is saved to bbox.json.
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[09/28 15:53:07] ppdet.metrics.coco_utils INFO: Start evaluate...
Loading and preparing results...
DONE (t=0.00s)
creating index...
index created!
Running per image evaluation...
Evaluate annotation type *bbox*
Traceback (most recent call last):
File "tools/train.py", line 138, in
main()
File "tools/train.py", line 134, in main
run(FLAGS, cfg)
File "tools/train.py", line 109, in run
trainer.train(FLAGS.eval)
File "D:\PaddleDetection-release-2.2\ppdet\engine\trainer.py", line 407, in train
self._eval_with_loader(self._eval_loader)
File "D:\PaddleDetection-release-2.2\ppdet\engine\trainer.py", line 439, in _eval_with_loader
metric.accumulate()
File "D:\PaddleDetection-release-2.2\ppdet\metrics\metrics.py", line 132, in accumulate
classwise=self.classwise)
File "D:\PaddleDetection-release-2.2\ppdet\metrics\coco_utils.py", line 112, in cocoapi_eval
coco_eval.evaluate()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pycocotools\cocoeval.py", line 149, in evaluate
for imgId in p.imgIds
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pycocotools\cocoeval.py", line 150, in
for catId in catIds}
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pycocotools\cocoeval.py", line 189, in computeIoU
ious = maskUtils.iou(d,g,iscrowd)
File "pycocotools\_mask.pyx", line 214, in pycocotools._mask.iou
File "pycocotools\_mask.pyx", line 193, in pycocotools._mask.iou._preproc
Exception: list input can be bounding box (Nx4) or RLEs ([RLE])

 

 

救命

0
收藏
回复
全部评论(8)
时间顺序
JavaRoom
#2 回复于2021-09

亲,好长啊,要不把最终的错误贴出来,看好多中间的。

0
回复
a
a3474905597
#3 回复于2021-09
亲,好长啊,要不把最终的错误贴出来,看好多中间的。

[09/28 15:52:41] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:52:42] ppdet.engine INFO: Eval iter: 0
[09/28 15:52:42] ppdet.engine INFO: Total sample number: 4, averge FPS: 3.8910997775814122
[09/28 15:52:42] ppdet.engine WARNING: Evaluation results empty, this may be due to training iterations being too few or not loading the correct weights.
[09/28 15:52:43] ppdet.engine INFO: Epoch: [5] [ 0/32] learning_rate: 0.005467 fam_cls_loss: 1.097872 fam_reg_loss: 0.636788 odm_cls_loss: 1.050236 odm_reg_loss: 0.9
15670 loss: 3.765637 eta: 3:48:16 batch_cost: 0.7068 data_cost: 0.0003 ips: 1.4148 images/s
[09/28 15:52:57] ppdet.engine INFO: Epoch: [5] [20/32] learning_rate: 0.005733 fam_cls_loss: 1.056859 fam_reg_loss: 0.573235 odm_cls_loss: 0.952704 odm_reg_loss: 0.7
85765 loss: 3.357337 eta: 3:47:32 batch_cost: 0.7055 data_cost: 0.0001 ips: 1.4175 images/s
[09/28 15:53:06] ppdet.utils.checkpoint INFO: Save checkpoint: output\s2anet_1x_spine
[09/28 15:53:06] ppdet.engine INFO: Eval iter: 0
[09/28 15:53:07] ppdet.metrics.metrics INFO: The bbox result is saved to bbox.json.
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[09/28 15:53:07] ppdet.metrics.coco_utils INFO: Start evaluate...
Loading and preparing results...
DONE (t=0.00s)
creating index...
index created!
Running per image evaluation...
Evaluate annotation type *bbox*
Traceback (most recent call last):
File "tools/train.py", line 138, in
main()
File "tools/train.py", line 134, in main
run(FLAGS, cfg)
File "tools/train.py", line 109, in run
trainer.train(FLAGS.eval)
File "D:\PaddleDetection-release-2.2\ppdet\engine\trainer.py", line 407, in train
self._eval_with_loader(self._eval_loader)
File "D:\PaddleDetection-release-2.2\ppdet\engine\trainer.py", line 439, in _eval_with_loader
metric.accumulate()
File "D:\PaddleDetection-release-2.2\ppdet\metrics\metrics.py", line 132, in accumulate
classwise=self.classwise)
File "D:\PaddleDetection-release-2.2\ppdet\metrics\coco_utils.py", line 112, in cocoapi_eval
coco_eval.evaluate()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pycocotools\cocoeval.py", line 149, in evaluate
for imgId in p.imgIds
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pycocotools\cocoeval.py", line 150, in
for catId in catIds}
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pycocotools\cocoeval.py", line 189, in computeIoU
ious = maskUtils.iou(d,g,iscrowd)
File "pycocotools\_mask.pyx", line 214, in pycocotools._mask.iou
File "pycocotools\_mask.pyx", line 193, in pycocotools._mask.iou._preproc
Exception: list input can be bounding box (Nx4) or RLEs ([RLE])

0
回复
a
a3474905597
#4 回复于2021-09

救命

0
回复
a
a3474905597
#5 回复于2021-09

不管是边训练边验证,还是训练完毕之后在验证都报这个错。使用的S2ANet

0
回复
JavaRoom
#6 回复于2021-10

有空了公开了我瞅瞅

0
回复
a
a3474905597
#7 回复于2021-10
有空了公开了我瞅瞅

啥公开

0
回复
锡昱
#8 回复于2021-10
啥公开

他说的应该是让你把项目给公开了之后帮检查一下.......这样我们都看不到你项目内容.....

0
回复
g
gdqyhua
#9 回复于2023-06

我的也是报这个错,楼上解决了吗?

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户