YOLOv6 icon indicating copy to clipboard operation
YOLOv6 copied to clipboard

No such file or directory '../custom_dataset\\annotations\\instances_valid.json'

Open Selfpline6 opened this issue 1 year ago • 1 comments

Before Asking

  • [X] I have read the README carefully. 我已经仔细阅读了README上的操作指引。

  • [X] I want to train my custom dataset, and I have read the tutorials for training your custom data carefully and organize my dataset correctly; (FYI: We recommand you to apply the config files of xx_finetune.py.) 我想训练自定义数据集,我已经仔细阅读了训练自定义数据的教程,以及按照正确的目录结构存放数据集。(FYI: 我们推荐使用xx_finetune.py等配置文件训练自定义数据集。)

  • [X] I have pulled the latest code of main branch to run again and the problem still existed. 我已经拉取了主分支上最新的代码,重新运行之后,问题仍不能解决。

Search before asking

  • [X] I have searched the YOLOv6 issues and found no similar questions.

Question

在自建数据集上 当我把eval.py --tesk 指定为test时,dataset.yaml 中test路径为 ../custom_deteset/images/valid 在annotations 文件下下没有instances_valid.json 文件。 当--tesk 指定为val时 dataset.yaml 中val路径为 ../custom_deteset/images/val 可以正常运行 因为annotations 文件下只有instances_val.json 文件。这该如何解决?

Additional

在自建数据集上 当我把eval.py --tesk 指定为test时,dataset.yaml 中test路径为 ../custom_deteset/images/valid 在annotations 文件下下没有instances_valid.json 文件。 当--tesk 指定为val时 dataset.yaml 中val路径为 ../custom_deteset/images/val 可以正常运行 因为annotations 文件下只有instances_val.json 文件。这该如何解决?

Selfpline6 avatar Oct 19 '23 03:10 Selfpline6

您好,如果这边使用windows系统运行项目代码,可以将数据集的路径中 '/' 换成 ’\‘ 或者 ’\‘ 试试。

Chilicyy avatar Oct 27 '23 07:10 Chilicyy