Skip to content

ImportError: cannot import name 'transforms' from 'paddlex' #4743

@sf9ehf9fe

Description

@sf9ehf9fe

Checklist:

描述问题

from paddlex import transforms as T 后运行报ImportError: cannot import name 'transforms' from 'paddlex'

复现

  1. 您是否已经正常运行我们提供的教程
  2. 您是否在教程的基础上修改代码内容?还请您提供运行的代码
  3. 您使用的数据集是?
    未使用数据集
  4. 请提供您出现的报错信息及相关log
    Traceback (most recent call last):
    File "/export/DkyProject/DkyPaddleX/train_detection.py", line 2, in
    from paddlex import transforms as T
    ImportError: cannot import name 'transforms' from 'paddlex' (/export/data/Anaconda3/envs/ZNXJ_PaddleX/lib/python3.10/site-packages/paddlex/init.py)

环境

  1. 请提供您使用的PaddlePaddle和PaddleX的版本号
    PaddleX=3.3.9
  2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS
    Linux
  3. 请问您使用的Python版本是?
    3.10.19
  4. 请问您使用的CUDA/cuDNN的版本号是?
    cu126

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions