错误ValueError: List argument ‘indices’ to ‘Sparse Concat’ Op with length 0 shorter than minimum length 2.

在实现github代码的时候,由于keras版本的原因把keras.backend.image_dim_ordering()更改为keras.backend.image_data_format(),‘th’和’tf’更改为’channels_first’和’channels_last’。之后程序运行时报错ValueError: List argument ‘indices’ to ‘Sparse Concat’ Op with length 0 shorter than minimum length 2.

经过查找发现,引用的另一个代码文件中的上述代码没有进行对应的更改,所以报错,把所有相关代码文件都改为现有版本keras的格式就可以消除这个错误。

ValueError: List argument ‘indices‘ to ‘Sparse Concat‘ Op with length 0 shorter than minimum length2相关推荐

  1. 成功解决TypeError: __init__() got an unexpected keyword argument 'indices'

    成功解决TypeError: __init__() got an unexpected keyword argument 'indices' 目录 解决问题 解决思路 解决方法 解决问题 TypeEr ...

  2. pytorch转caffe2 之 onnx转caffe2报错的解决方法 ValueError: Don't know how to translate op Unsqueeze

    目标:将 pytorch模型 转为 onnx模型 再转为 caffe2模型,得到两个.pb文件 pytorch转onnx可通过torch.onnx._export函数实现. onnx转caffe2有两 ...

  3. ValueError: You are trying to load a weight file containing 0 layers into a model with 16 layers.

    ValueError: You are trying to load a weight file containing 0 layers into a model with 16 layers. 在使 ...

  4. ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0

    ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0 问题再现 解决办 ...

  5. 成功解决ValueError: Invalid classes inferred from unique values of `y`. Expected: [0 1], got [‘0‘ ‘1‘]

    成功解决ValueError: Invalid classes inferred from unique values of `y`.  Expected: [0 1], got ['0' '1'] ...

  6. argument 'indices' must be tuple of Tensors, not Tensor

    当我做loss backward的时候,遇到这个问题. 先是查到,这个问题可以通过autograd.variable解决,我将最后得到loss的中间变量加上之后觉得无法利用之前的信息 手写双线性插值也 ...

  7. ValueError: x and y arrays must be equal in length along interpolation axis.

    解决方法 使数组变成一维 b = np.asarray(b).squeeze() b.shape (62,)

  8. docx4j 对比word

    在java对比两份word文档(包括表格里面的数据,表格里的数据和段落里的数据需要分别处理,详情看后面代码),增加批注显示差异. 效果图如下 需引入docx4j jar ,版本可拿最新稳定版. mav ...

  9. 读取word、pdf某些位置的值

    最近有个需求是要求读word或pdf形式合同里某些位置的值,但具体读什么位置,没有明确的定位.可自定义位置. 经思考过后,采取以下方式. 1.复制一份word/pdf. 2.把复制出来的word/pd ...

最新文章

  1. Dom对象、JavaScript对象、jQuery对象区别
  2. 玩Azkaban跳过的坑
  3. nodejs学习(一)--express+ejs生成项目
  4. 怎样完善和推广自己的理论模型?
  5. 详解 SGA 与实例优化(部分)
  6. Delphi 实现数字转大写
  7. Android 之 网络连接(Connecting to the Network)
  8. 用户服务协议和隐私政策
  9. Windows图片查看器不出现下一张和上一张按钮
  10. input输入身份证验证
  11. 一篇文章带你读懂水晶易表的简介及其安装初识
  12. python神经网络识别验证码_基于卷积神经网络实现验证码识别(一)
  13. Real-Time Video Super-Resolution with Spatio-Temporal Networks and Motion Compensation论文解析(视频超分)
  14. 金融科技争做“超级接口”,度小满有了“送水工”的样子
  15. 基于飞桨本地ocr安卓按键插件
  16. 弘辽科技:淘宝新商家怎么做起来?如何经营一个新店?
  17. Hadoop,MapReduce,HDFS面试题
  18. 下载工具:aria2c
  19. python学习之 re库 正则表达式
  20. C语言魔王语言解释(没那么复杂)

热门文章

  1. 专利 | 基于微表情与脑波分析算法的心理健康状况分析算法
  2. 程序员应该避开的20个低级不良用户体验
  3. golang语言的入门基础,及window和linux系统上环境的搭配及运行
  4. python学习笔记(七):运算符和流程控制
  5. mysql host 为%_mysql中host为%是什么意思
  6. 广东省谷歌地球高程DEM等高线下载
  7. android微博分块,微信、微博刷屏利器 图片切割9Cut安卓版
  8. wps的pdf高亮后怎么取消_pdf高亮文本怎么取消及修改
  9. 代理方式部署NER标注平台doccano
  10. 转生活中的各种食品安全问题