平台这两天咋老出问题
收藏
快速回复
AI Studio平台使用 问答其他 1185 1
平台这两天咋老出问题
收藏
快速回复
AI Studio平台使用 问答其他 1185 1

ModuleNotFoundError: No module named 'paddle.fluid.dataloader.collate'

这又是咋回事

 

/home/aistudio/PaddleDetection
/home/aistudio/.data/webide/pip/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
/home/aistudio/.data/webide/pip/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 "ppdet/modeling/tests/test_architectures.py", line 20, in
import ppdet
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
收藏
回复
全部评论(1)
时间顺序
三岁
#2 回复于2021-10

这个真的是平台问题嘛?你看一下你使用的版本和参考的文档是不是一样的

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户