U-Net运行报错merge6 = merge([drop4,up6], mode = 'concat'...) TypeError: 'module' object is not callable
2019-07-20 22:10
3023 查看
运行U-net进行图像分割时报错:
[code]merge6 = merge([drop4,up6], mode = 'concat', concat_axis = 3) TypeError: 'module' object is not callable
原因
tensor版本更新后,语法规则发生了改变,代码也要做出相应调整
解决办法:
把unet.py下的代码更改一下
[code]merge6 = merge([crop4,up6], mode = 'concat', concat_axis = 3)
改成:
[code]merge6 = concatenate([drop4,up6],axis=3)
merge7,8,9同理,按照上述规则更改 注意后面括号里的数字要与前面对应
转载自:https://blog.csdn.net/DoReAGON/article/details/83314022
unet原文及源代码链接:
原文:https://blog.csdn.net/mieleizhi0522/article/details/82217677
相关文章推荐
- python TypeError: 'module' object is not callable
- python+selenium自动化测试~打开浏览器报TypeError: 'module' object is not callable
- TypeError: 'module' object is not callable
- python 2.7 : 引用模块时出现TypeError:'module' object is not callable
- Python包导入(TypeError: 'module' object is not callable),及一定要记住Python成员函数第一个参数值是self。
- TypeError: 'module' object is not callable (pytorch在进行MNIST数据集预览时出现的错误)
- python import 包问题:TypeError: 'module' object is not callable
- TypeError: 'module' object is not callable
- python错误:TypeError: 'module' object is not callable
- Python TypeError: 'module' object is not callable
- TypeError: 'module' object is not callable错误处理
- Anaconda下import caffe出现错误TypeError: 'module' object is not callable
- python 报错 TypeError: 'module' object is not callable
- [已解决]TypeError: 'module' object is not callable
- TypeError: 'module' object is not callable
- python错误:TypeError: 'module' object is not callable
- tensorflow代码运行的最后抛出异常:TypeError: 'NoneType' object is not callable
- python报错:TypeError: 'list' object is not callable
- Python错误:TypeError: 'int' object is not callable解决办法
- TypeError: 'frozenset' object is not callable