python - AttributeError:模块“tf_util”没有属性“conv2d”
问题描述
当我在自己的数据集上运行 pointnet 代码时,我在“conv2d”上遇到了问题。我的张量流版本:1.8.0,cudatoolkit 9.0 cudnn 7.6.5。有人可以帮我吗?是版本问题吗?
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:521: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:522: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "train.py", line 253, in <module>
main()
File "train.py", line 74, in main
pred = get_model(pointclouds_pl, is_training=is_training_pl, bn_decay=bn_decay)
File "/home/yanz/PointNet/model.py", line 30, in get_model
net = tf_util.conv2d(input_image, 64, [1, 4], padding='VALID', stride=[1, 1],
AttributeError: module 'tf_util' has no attribute 'conv2d'
解决方案
推荐阅读
- scale - Apache Ignite - 有没有办法避免并置计算中的热点节点
- python - 如何为电报机器人处理 InlineKeyboardButtons 的回调
- javascript - 测试一个 javascript 互斥锁实现
- php - 如何为我的应用程序博客文章显示从我的数据库中获取的标题
- excel - 如果优先级(从最高到最低)标准匹配到另一个工作表,则复制整行数据
- python - 如何在单行代码中删除 python 3 中类列表中的 [ , ] 和单引号?
- python - 使用聚合列和未聚合列创建 DataFrame
- erlang - 如何禁用两个节点在同一个端口上连接?
- python - 如何进行随机加法
- angular - 我的 Angular 应用程序中有一个 http 错误接收器。我正在从后端捕获所有错误。如何显示所有错误?