We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
转了之后不知道怎么配置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()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
转了之后不知道怎么配置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()
The text was updated successfully, but these errors were encountered: