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

大佬coco转yolo之后,yolo的.yaml文件的类别怎么配置啊? #8

Open
chen3313 opened this issue Oct 26, 2023 · 0 comments
Open

Comments

@chen3313
Copy link

转了之后不知道怎么配置datasets下自定义的.yaml文件,
names:
0: Drosicha_contrahens_female
1: Drosicha_contrahens_male
2: Chalcophora_japonica
3: Anoplophora_chinensis
4: Psacothea_hilaris(Pascoe)
5: Apriona_germari(Hope)
6: Monochamus_alternatus
7: Plagiodera_versicolora(Laicharting)
8: Latoia_consocia_Walker
9: Hyphantria_cunea
10: Cnidocampa_flavescens(Walker)
11: Cnidocampa_flavescens(Walker_pupa)
......
不知道怎么能抽取出来,然后运行会报错
Traceback (most recent call last):
File "train.py", line 8, in
model.train(data="./ultralytics/cfg/datasets/pest.yaml", epochs=3) # train the model
File "/root/autodl-tmp/ultralytics-main/ultralytics/engine/model.py", line 336, in train
self.trainer = (trainer or self._smart_load('trainer'))(overrides=args, _callbacks=self.callbacks)
File "/root/autodl-tmp/ultralytics-main/ultralytics/engine/trainer.py", line 123, in init
raise RuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) from e
RuntimeError: Dataset 'ultralytics/cfg/datasets/pest.yaml' error ❌ object of type 'NoneType' has no len()

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

1 participant