首页 PaddleCV 帖子详情
PaddleDetection2.0 PaddlePaddle2.0.2 训练是不能搭配一起工作的。
收藏
快速回复
PaddleCV 其他目标检测 1278 3
PaddleDetection2.0 PaddlePaddle2.0.2 训练是不能搭配一起工作的。
收藏
快速回复
PaddleCV 其他目标检测 1278 3

PaddleDetection训练遇到问题:

/home/aistudio/PaddleDetection
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layers/utils.py:26: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  def convert_to_list(value, n, name, dtype=np.int):
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/__init__.py:107: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableMapping
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/rcsetup.py:20: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Iterable, Mapping
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/colors.py:53: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Sized
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/tensor/creation.py:143: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. 
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  if data.dtype == np.object:
Traceback (most recent call last):
  File "tools/train.py", line 33, in 
    from ppdet.core.workspace import load_config, merge_config, create
  File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/__init__.py", line 15, in 
    from . import (core, data, engine, modeling, model_zoo, optimizer, metrics,
  File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/__init__.py", line 16, in 
    from . import transform
  File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/transform/__init__.py", line 15, in 
    from . import operators
  File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/transform/operators.py", line 42, in 
    from ..reader import Compose
  File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/reader.py", line 26, in 
    from paddle.fluid.dataloader.collate import default_collate_fn
ModuleNotFoundError: No module named 'paddle.fluid.dataloader.collate'
0
收藏
回复
全部评论(3)
时间顺序
飞桨_PaddleGAN
#2 回复于2021-09

您安装的是否是ppdet2.0.0版本呢?由于PaddleDetection2.0发版有些小问题,release/2.0分支的使用是没有问题的哈~ 您可以尝试一下~

0
回复
JavaRoom
#3 回复于2021-09
您安装的是否是ppdet2.0.0版本呢?由于PaddleDetection2.0发版有些小问题,release/2.0分支的使用是没有问题的哈~ 您可以尝试一下~

是2.0版本,在paddlepaddle2.0.2上就出问题,2.1.2就正常

0
回复
靠谱的小新新2
#4 回复于2021-12
是2.0版本,在paddlepaddle2.0.2上就出问题,2.1.2就正常

请问解决了吗?我在2.0.2也出现同样的错误

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