keras-yolov3在win10下训练目标检测算法,

【win10 + gpu 3090 + cuda_10.0.130_411.31_win10 + cudnn-10.0-windows10-x64-v7.6.5.32】

报错如下:

......E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] layout failed: Invalid argument: Subshape must have computed start >= end since stride is negative, but is 0 and 2 (computed from start 0 and end 9223372036854775807 over shape with rank 2 and stride-1)
......E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] remapper failed: Invalid argument: Subshape must have computed start >= end since stride is negative, but is 0 and 2 (computed from start 0 and end 9223372036854775807 over shape with rank 2 and stride-1)

cuda10下载地址:

CUDA Toolkit 10.0 Archive | NVIDIA DeveloperSelect Target Platform Click on the green buttons that describe your target platform. Only supported platforms will be shown. Operating System Architecture Distribution Version Installer Type Do you want to cross-compile? Yes No Select Host Platform Click on the green buttons that describe your host platform. Only supported platforms will be shown. Operating Systemhttps://developer.nvidia.com/cuda-10.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal建议下载 exe(local)安装包,虽文件比较大,但一般安装没问题。

安装默认目录是:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0

cudnn下载地址:

cuDNN Archive | NVIDIA DeveloperNVIDIA cuDNN is a GPU-accelerated library of primitives for deep neural networks.https://developer.nvidia.cn/rdp/cudnn-archive

以下是windows的对应关系:

 解决方法:

model.py中的140,141行改为下面:

box_xy = (K.sigmoid(feats[..., :2]) + grid) / K.cast(grid_shape[..., ::-1], K.dtype(feats))
box_wh = K.exp(feats[..., 2:4]) * anchors_tensor / K.cast(input_shape[..., ::-1], K.dtype(feats))

Invalid argument: Subshape must have computed start >= end since stride is negative, but is 0 and 2相关推荐

  1. 【吭】Failed to parse PID from file /run/nginx.pid: Invalid argument

    参考资料:Failed to parse PID from file /run/nginx.pid: Invalid argument_噢,乖-CSDN博客查看Nginx状态,发现报错Failed t ...

  2. CentOS7服务器Docker构建ubuntu镜像出错invalid argument

    为什么80%的码农都做不了架构师?>>>    #1 发现问题 拿到某云主机时,选择了最新的CentOS 7.2的公共镜像,一些工作过后,开始布暑应用.因为没有使用docker仓库, ...

  3. Oracle报错TNS-12532: TNS:invalid argument

    今天一个同事遇到了一个oracle问题,在数据库本机通过sqlplus登录sys用户时报TNS-12532: TNS:invalid argument,这个错误. 造成这个错误的原因主要有三个,一般排 ...

  4. CUDA error:invalid argument

    当使用torch.view()时 出现 RuntimeError: invalid argument 1: input is not contiguous at /pytorch/torch/lib/ ...

  5. 昇腾 OSError: [Errno 22] Invalid argument: ‘protocol‘

    OSError: [Errno 22] Invalid argument: 'protocol' 改为这样不报错,但是报别的错: def __init__(self, family=-1, type= ...

  6. invalid argument 0: Sizes of tensors must match except in dimension 0. Got 1

    invalid argument 0: Sizes of tensors must match except in dimension 0. Got 1 原因:dataloader 需要的数据维度是一 ...

  7. Invalid argument(s) 'pool_size' sent to create_engine(), using configuration

    Invalid argument(s) 'pool_size' sent to create_engine(), using configuration 我们这里测试的是create_engine缺乏 ...

  8. 解决selenium用cookies时候报错selenium.common.exceptions.InvalidArgumentException: Message: invalid argument

    报错如下: selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'xxxxx ...

  9. QWSLock::up(): Invalid argument

    运行qt时,点击QMessageBox的确定按钮是出现错误QWSLock::up(): Invalid argument, QWSLock::down(): Invalid argument,这个是q ...

  10. 成功解决fp = builtins.open(filename, quot;rbquot;) OSError: [Errno 22] Invalid argument: 'F:\\File_Pyt

    成功解决fp = builtins.open(filename, "rb") OSError: [Errno 22] Invalid argument: 'F:\\File_Pyt ...

最新文章

  1. CIO成功转型为战略性业务领导者的五个要领
  2. WebRTC学习笔记
  3. 全景视频的跟踪与合成方法
  4. vue 如何解析原生html,VUE渲染后端返回含有script标签的html字符串示例
  5. python元胞自动机模拟交通_大师兄带你复现 -gt; 难度超高的二维CA元胞自动机模型...
  6. 【渝粤题库】陕西师范大学163204 旅游规划学
  7. java流的应用_Java中I/O流的应用
  8. 世纪华通与华为签署合作协议,加快推进绿色数据中心建设
  9. android 串口调试助手_Arduino入门 第八节-串口通讯(基础篇)
  10. RHEL7忘记密码:修改root密码
  11. 优化理论09-----线性等式约束问题的投影方法、投影最速下降算法、解决方向查找问题(DFP)、牛顿法的修正在线性等式约束、变度量法
  12. 统计挖掘那些事(七)—— 如何直观地理解过拟合与欠拟合那些事~
  13. PHP实现敏感词过滤
  14. 【蓝桥杯历年题】2020蓝桥杯A组省赛第二场(10.17)【含蓝桥杯官网提交地址】
  15. Ubuntu获取最高权限(su)的方式
  16. JVM - 工欲善其事必先利其器之虚拟机工具(上)
  17. 翻遍互联网都找不到的解决方案,一行代码轻松实现 Gitbook 默认折叠左侧菜单效果
  18. android对输入手机号码震动,浅析Android手机卫士之抖动输入框和手机震动
  19. HC05蓝牙模块AT指令与手机蓝牙控制STM32板载LED
  20. 浙大计算机学硕453分,卷卷卷!2021计算机专业考研神仙打架:浙大最高分超450,人均400+?...

热门文章

  1. 关于 类的常成员函数 声明和定义处 都需要加 const的原因
  2. python实现pdf合并
  3. SpringBoot Mongo 动态分表 动态修改表名
  4. java8 stream中Comparator.comparing排序
  5. js多线程编程web worker
  6. 近代光学系统设计概论学习笔记-第四章双胶合和双分离消色差物镜
  7. C#输入身高体重求BMI
  8. 《电子签名法》相关概念介绍
  9. 1894 Beckham’s Freekick
  10. xml和接口简单理解