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

训练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 springboot项目本地运行正常,部署服务器报错。
  • ¥15 Amd显卡覆盖后就用不了blender的cycles GPU渲染了
  • ¥15 提问部分代码填入Python
  • ¥20 帮我解答一下哪一块是单片机将数据传输到显示屏上显示出来的那部分代码,之后帮我解释这个部分的每一句的意思
  • ¥15 matlab 神经网络集成/融合?
  • ¥15 简化数学表达式,修改为简单求和形式
  • ¥20 光热发电的能量汇聚 求解
  • ¥15 windows连接xbox主机
  • ¥15 帮助看看这个c语言程序
  • ¥50 python表格图片筛查程序问题