Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paddle版本==2.4.0出现ModuleNotFoundError: No module named 'paddle.base' #64678

Open
3183817130 opened this issue May 29, 2024 · 1 comment
Assignees

Comments

@3183817130
Copy link

bug描述 Describe the Bug

!python tools/train.py -c configs/rtdetr/rtdetr_hgnetv2_x_6x_coco.yml --eval --use_vdl True --vdl_log_dir vdl_log_dir/scalar出现以下错误
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "tools/train.py", line 32, in
from ppdet.core.workspace import load_config, merge_config
File "/home/aistudio/PaddleDetection/ppdet/init.py", line 15, in
from . import (core, data, engine, modeling, model_zoo, optimizer, metrics,
File "/home/aistudio/PaddleDetection/ppdet/data/init.py", line 16, in
from . import transform
File "/home/aistudio/PaddleDetection/ppdet/data/transform/init.py", line 15, in
from . import operators
File "/home/aistudio/PaddleDetection/ppdet/data/transform/operators.py", line 56, in
from ppdet.modeling.keypoint_utils import get_affine_transform, affine_transform
File "/home/aistudio/PaddleDetection/ppdet/modeling/init.py", line 23, in
from . import heads
File "/home/aistudio/PaddleDetection/ppdet/modeling/heads/init.py", line 17, in
from . import yolo_head
File "/home/aistudio/PaddleDetection/ppdet/modeling/heads/yolo_head.py", line 26, in
from ..losses import IouLoss
File "/home/aistudio/PaddleDetection/ppdet/modeling/losses/init.py", line 34, in
from . import clrnet_loss
File "/home/aistudio/PaddleDetection/ppdet/modeling/losses/clrnet_loss.py", line 6, in
from ppdet.modeling.assigners.clrnet_assigner import assign
File "/home/aistudio/PaddleDetection/ppdet/modeling/assigners/init.py", line 18, in
from . import simota_assigner
File "/home/aistudio/PaddleDetection/ppdet/modeling/assigners/simota_assigner.py", line 22, in
from ppdet.modeling.losses.varifocal_loss import varifocal_loss
File "/home/aistudio/PaddleDetection/ppdet/modeling/losses/varifocal_loss.py", line 27, in
from paddle.base.framework import in_dygraph_mode
ModuleNotFoundError: No module named 'paddle.base'

其他补充信息 Additional Supplementary Information

No response

@zhangting2020
Copy link
Contributor

建议更新Paddle到2.6版本试试,从报错来看可能是版本太低

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants