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
1条答案
按热度按时间xmjla07d1#
建议更新Paddle到2.6版本试试,从报错来看可能是版本太低