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

训练Mask-RT-DETR-L时报错,数据集已经成功通过数据校验,训练其他实例分割模型也报错 #3527

Open
4 tasks
SXleader opened this issue Mar 4, 2025 · 1 comment
Assignees

Comments

@SXleader
Copy link

SXleader commented Mar 4, 2025

Checklist:

描述问题

训练Mask-RT-DETR-L时报错,数据集已经成功通过数据校验,训练其他实例分割模型也报错

复现

  1. 您是否已经正常运行我们提供的教程
  2. 您是否在教程的基础上修改代码内容?还请您提供运行的代码
  3. 您使用的数据集是?
    自己的数据集,但通过了数据校验
  4. 请提供您出现的报错信息及相关log
    信息: 用提供的模式无法找到文件。

[03/04 21:55:35] ppdet.utils.checkpoint INFO: Skipping import of the encryption module.

======================= Modified FLAGS detected =======================

FLAGS(name='FLAGS_enable_pir_api', current_value=False, default_value=True)

FLAGS(name='FLAGS_win_cuda_bin_dir', current_value='D:\anaconda3\envs\paddle\lib\site-packages\paddle\..\nvidia', default_value='')

=======================================================================

Traceback (most recent call last):

File "tools/train.py", line 212, in

main()

File "tools/train.py", line 208, in main

run(FLAGS, cfg)

File "tools/train.py", line 148, in run

trainer = Trainer(cfg, mode='train')

File "E:\study\PaddleX\paddlex\repo_manager\repos\PaddleDetection\ppdet\engine\trainer.py", line 101, in init

yaml.dump(config_dict, f)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml_init_.py", line 253, in dump

return dump_all([data], stream, Dumper=Dumper, **kwds)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml_init_.py", line 241, in dump_all

dumper.represent(data)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml\representer.py", line 27, in represent

node = self.represent_data(data)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml\representer.py", line 48, in represent_data

node = self.yaml_representers[data_types[0]](self, data)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml\representer.py", line 207, in represent_dict

return self.represent_mapping('tag:yaml.org,2002:map', data)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml\representer.py", line 118, in represent_mapping

node_value = self.represent_data(item_value)

File "D:\anaconda3\envs\paddle\lib\site-packages\yaml\representer.py", line 48, in represent_data

node = self.yaml_representers[data_types[0]](self, data)

File "E:\study\PaddleX\paddlex\repo_manager\repos\PaddleDetection\ppdet\core\config\yaml_helpers.py", line 60, in python_representer

data = {name: getattr(obj, name) for name in argnames}

File "E:\study\PaddleX\paddlex\repo_manager\repos\PaddleDetection\ppdet\core\config\yaml_helpers.py", line 60, in

data = {name: getattr(obj, name) for name in argnames}

AttributeError: 'ImageFolder' object has no attribute 'cls'

环境

  1. 请提供您使用的PaddlePaddle和PaddleX的版本号
    3.0.0b2 3.0.0rc0
  2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS
    Windows
  3. 请问您使用的Python版本是?
    3.8
  4. 请问您使用的CUDA/cuDNN的版本号是?
    11.8 8.9.2.26
@changdazhou
Copy link
Collaborator

建议先尝试一下升级PaddlePaddle至3.0.0rc0哈,然后python使用3.10尝试一下

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

No branches or pull requests

2 participants