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

yolov8在910A上训练报错 #284

Closed
shmilybg opened this issue Apr 7, 2024 · 3 comments · Fixed by #286
Closed

yolov8在910A上训练报错 #284

shmilybg opened this issue Apr 7, 2024 · 3 comments · Fixed by #286
Assignees

Comments

@shmilybg
Copy link

shmilybg commented Apr 7, 2024

环境:[MindCV0.2.2]MindSpore2.0.0-Cann6.3.rc1-Python3.7-Euler2.8
启动命令:python train.py --config ./configs/yolov8/yolov8m.yaml
报错:

Scanning 'coco/val2017.cache' images and labels... 0 found, 0 missing, 0 empty, 5000 corrupted: 100%|█| 5000/5000 [00:00<00:00, 21656.7
Traceback (most recent call last):
  File "test.py", line 511, in <module>
    main(args)
  File "test.py", line 466, in main
    stride=max(args.network.stride),
  File "/home/ma-user/work/mindyolo/mindyolo/data/dataset.py", line 133, in __init__
    cache, exists = self.cache_labels(cache_path), False  # cache
  File "/home/ma-user/work/mindyolo/mindyolo/data/dataset.py", line 289, in cache_labels
    print(f"WARNING: No labels found in {path}. See {self.help_url}")
AttributeError: 'COCODataset' object has no attribute 'help_url'
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[47846,1],0]
  Exit code:    1
--------------------------------------------------------------------------
@zhanghuiyao
Copy link
Collaborator

看起来是在cache_label的时候,数据集里面没找到相应的label file
https://github.com/mindspore-lab/mindyolo/blob/master/mindyolo/data/dataset.py#L200
image

@zhanghuiyao
Copy link
Collaborator

@shmilybg
Copy link
Author

shmilybg commented Apr 7, 2024

可以了 感谢大佬

@yuedongli1 yuedongli1 linked a pull request Apr 8, 2024 that will close this issue
4 tasks
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

Successfully merging a pull request may close this issue.

3 participants