weixin_48115164 2022-10-08 17:06 采纳率: 66.7%
浏览 195
已结题

训练yolov7遇上的问题

我在训练yolov7时,之前显示错误 wandb.errors.UsageError: api_key not configured (no-tty). call wandb.login(key=[your_api_key]),但是我注册之后wandb,又显示为:
Traceback (most recent call last):
File "D:/graduation thesis/yolov7-main/train.py", line 616, in
train(hyp, opt, device, tb_writer)
File "D:/graduation thesis/yolov7-main/train.py", line 245, in train
dataloader, dataset = create_dataloader(train_path, imgsz, batch_size, gs, opt,
File "D:\graduation thesis\yolov7-main\utils\datasets.py", line 69, in create_dataloader
dataset = LoadImagesAndLabels(path, imgsz, batch_size,
File "D:\graduation thesis\yolov7-main\utils\datasets.py", line 386, in init
raise Exception(f'{prefix}Error loading data from {path}: {e}\nSee {help_url}')
Exception: train: Error loading data from ./coco/train2017.txt: train: coco\train2017.txt does not exist
See https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data
wandb: Waiting for W&B process to finish... (failed 1). Press Ctrl-C to abort syncing.
wandb: Synced exp14: https://wandb.ai/chengdu-univerisity-of-technology/YOLOR/runs/28i4uq24
wandb: Synced 6 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
wandb: Find logs at: .\wandb\run-20221008_155840-28i4uq24\logs

进程已结束,退出代码 1

  • 写回答

2条回答 默认 最新

  • CSDN专家-sinJack 2022-10-08 17:17
    关注

    Exception: train: Error loading data from ./coco/train2017.txt: train: coco\train2017.txt does not exist
    文件路径不对,注意相对路径问题。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月16日
  • 已采纳回答 10月8日
  • 创建了问题 10月8日

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了