首页 PaddleX 帖子详情
module 'paddle.distributed' has no attribute 'init_parallel_env'
收藏
快速回复
PaddleX 问答入门 5490 7
module 'paddle.distributed' has no attribute 'init_parallel_env'
收藏
快速回复
PaddleX 问答入门 5490 7

我在练习官网的入门样例:  快速上手使用PaddleX-MobileNetV3_ssld图像分类,在aistudio环境的notebook中运行报错,信息如下。大佬可否帮忙指点下。

AttributeError Traceback (most recent call last) in 5 import os 6 os.environ['CUDA_VISIBLE_DEVICES'] = '0' ----> 7 import paddlex as pdx /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/__init__.py in 16 17 from paddlex.utils.env import get_environ_info, init_parallel_env ---> 18 init_parallel_env() 19 20 from . import cv /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/utils/env.py in init_parallel_env() 69 np.random.seed(local_seed) 70 ---> 71 paddle.distributed.init_parallel_env() AttributeError: module 'paddle.distributed' has no attribute 'init_parallel_env'

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

paddleX2.0版本以上,就不出错了。引出的问题是:paddleX2和1的兼容性,以后还能用paddleX1.X.X吗?

0
回复
JavaRoom
#3 回复于2021-09

升级版本了呗。

0
回复
0
010sky00
#4 回复于2021-10

我也是这个问题,请问是怎么解决的?

AttributeError: module 'paddle.distributed' has no attribute 'init_parallel_env'

0
回复
c
chushan89
#5 回复于2021-11

安装pddlex1.3.11,可以解决这个问题。 pip install paddlex==1.3.11

2
回复
x
xiaopan226
#6 回复于2021-12

这个问题有人解决吗?

0
回复
DeepGeGe
#7 回复于2021-12
这个问题有人解决吗?

PaddlePaddle的2.2.1版本paddle.distributed是存在init_parallel_env的,把PaddlePaddle升级一下就好了。

0
回复
陈思雄
#8 回复于2023-07
安装pddlex1.3.11,可以解决这个问题。 pip install paddlex==1.3.11

还是不行

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