开启辅助访问

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

大漠Yolo训练失败,一直失败。请问有人会解决吗?电脑配置

查看数: 2713 | 评论数: 61 | 收藏 0
关灯 | 提示:支持键盘翻页 & lt;-左 右 ->
    组图打开中,请稍候......
发布时间: 2024-8-28 07:56

正文摘要:

这个是我电脑的配置,能运行吗?我觉得应该不关电脑配置吧?求训练成功人士告知。哎~

回复

从南到北1   新疆维吾尔自治区石河子市 发表于 2025-3-31 23:10:53
忘情不是洒脱 发表于 2025-3-29 07:33
还是不行,提示:
train: weights=yolov5s.pt, cfg=, data=../datasets/lcdnf/lcdnf.yaml, hyp=data\hyps ...

怎么解决这种,  我跟你一摸一样的错误
忘情不是洒脱   广西壮族自治区南宁市 发表于 2025-3-29 07:33:32
MrKiss 发表于 2025-3-26 00:07
补到不提示位置,我就是这样,后面就可以正常运行了

还是不行,提示:
train: weights=yolov5s.pt, cfg=, data=../datasets/lcdnf/lcdnf.yaml, hyp=data\hyps\hyp.scratch-low.yaml, epochs=300, batch_size=16, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, bucket=, cache=None, image_weights=False, device=, multi_scale=False, single_cls=False, optimizer=SGD, sync_bn=False, workers=8, project=runs\train, name=exp, exist_ok=False, quad=False, cos_lr=False, label_smoothing=0.0, patience=100, freeze=[0], save_period=-1, seed=0, local_rank=-1, entity=None, upload_dataset=False, bbox_interval=-1, artifact_alias=latest
github: skipping check (not a git repository), for updates see https://github.com/ultralytics/yolov5
YOLOv5  2023-8-5 Python-3.10.0 torch-2.6.0+cpu CPU

hyperparameters: lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=0.05, cls=0.5, cls_pw=1.0, obj=1.0, obj_pw=1.0, iou_t=0.2, anchor_t=4.0, fl_gamma=0.0, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0
ClearML: run 'pip install clearml' to automatically track, visualize and remotely train YOLOv5  in ClearML
Comet: run 'pip install comet_ml' to automatically track and visualize YOLOv5  runs in Comet
TensorBoard: Start with 'tensorboard --logdir runs\train', view at http://localhost:6006/
Traceback (most recent call last):
  File "E:\yolo\yolov5-7.0\train.py", line 636, in <module>
    main(opt)
  File "E:\yolo\yolov5-7.0\train.py", line 529, in main
    train(opt.hyp, opt, device, callbacks)
  File "E:\yolo\yolov5-7.0\train.py", line 125, in train
    ckpt = torch.load(weights, map_location='cpu')  # load checkpoint to CPU to avoid CUDA memory leak
  File "C:\Users\windows\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 1470, in load
    raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
_pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint.
        (1) In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
        (2) Alternatively, to load with `weights_only=True` please check the recommended steps in the following error message.
        WeightsUnpickler error: Unsupported global: GLOBAL models.yolo.Model was not an allowed global by default. Please use `torch.serialization.add_safe_globals([Model])` or the `torch.serialization.safe_globals([Model])` context manager to allowlist this global if you trust this class/function.

Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
请按任意键继续. . .
MrKiss   河南省郑州市 发表于 2025-3-26 00:07:10
忘情不是洒脱 发表于 2025-3-23 08:02
大哥,你这个缺什么补什么感觉也补太多了,我现在补了十几个了还在继续补,大概要补多少 ...

补到不提示位置,我就是这样,后面就可以正常运行了
忘情不是洒脱   广西壮族自治区南宁市 发表于 2025-3-23 08:02:13
MrKiss 发表于 2024-8-28 11:54
这个问题可能是模块没安装到位,我之前也是,你在yolo文件夹内输入 cmd 然后在输入训练代码试试 看看反馈的 ...

大哥,你这个缺什么补什么感觉也补太多了,我现在补了十几个了还在继续补,大概要补多少
路人很6哦   湖南省永州市 发表于 2024-10-28 01:45:00
MrKiss 发表于 2024-8-28 20:55
你用的是大漠yolo吗 我也不算太清楚 我可以给你测试代码
测试识别
    命令行进入yolov5_7.0目录,然后执 ...

D:\yolov5-7.0>python train.py --weights yolov5s.pt --epochs 300 --batch-size 16 --workers 8 --data ../datasets/coco128/coco128.yaml
train: weights=yolov5s.pt, cfg=, data=../datasets/coco128/coco128.yaml, hyp=data\hyps\hyp.scratch-low.yaml, epochs=300, batch_size=16, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, bucket=, cache=None, image_weights=False, device=, multi_scale=False, single_cls=False, optimizer=SGD, sync_bn=False, workers=8, project=runs\train, name=exp, exist_ok=False, quad=False, cos_lr=False, label_smoothing=0.0, patience=100, freeze=[0], save_period=-1, seed=0, local_rank=-1, entity=None, upload_dataset=False, bbox_interval=-1, artifact_alias=latest
github: skipping check (not a git repository), for updates see https://github.com/ultralytics/yolov5
Traceback (most recent call last):
  File "train.py", line 633, in <module>
    main(opt)
  File "train.py", line 502, in main
    check_file(opt.data), check_yaml(opt.cfg), check_yaml(opt.hyp), str(opt.weights), str(opt.project)  # checks
  File "D:\yolov5-7.0\utils\general.py", line 483, in check_file
    assert len(files), f'File not found: {file}'  # assert file was found
AssertionError: File not found: ../datasets/coco128/coco128.yaml
jitaliangliang   安徽省淮北市 发表于 2024-9-7 19:22:34
独特舞步 发表于 2024-9-1 23:45
dlldependence和depends一样对吧?我已经下载好depends了!也放系统目录也没用! ...

虽然报了你那个dll的错误,但是缺少的并不是那个dll,应该是这个dll的一个依赖的dll,你用dependence查一下就看到了
羊羊霖   湖南省邵阳市 发表于 2024-9-4 08:05:23
独特舞步 发表于 2024-8-28 22:37
错误找到了,怎么解决呢?原来就是这个问题。。。求解决  谢谢

安装CDUA 然后重新测试 直接百du有一套
和尚我懂   山西省太原市 发表于 2024-9-2 19:30:02
torch 卸载了 重新安装别的版本   看看requirements.txt中  torch 版本 改成别的
独特舞步   广东省* 发表于 2024-9-2 15:35:13
fengyishen 发表于 2024-9-2 14:07
torch 没引用成功。应该是模块没有安装全,或者版本不匹配

那需要怎么才安装全呢?
fengyishen   广东省广州市 发表于 2024-9-2 14:07:39
独特舞步 发表于 2024-8-28 22:37
错误找到了,怎么解决呢?原来就是这个问题。。。求解决  谢谢

torch 没引用成功。应该是模块没有安装全,或者版本不匹配
发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:[email protected]
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表