PaddleDetection2.0 PaddlePaddle2.0.2 训练是不能搭配一起工作的。
收藏
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
收藏
请登录后评论
您安装的是否是ppdet2.0.0版本呢?由于PaddleDetection2.0发版有些小问题,release/2.0分支的使用是没有问题的哈~ 您可以尝试一下~
是2.0版本,在paddlepaddle2.0.2上就出问题,2.1.2就正常
请问解决了吗?我在2.0.2也出现同样的错误