ImageProjectiveTransform 错误解决办法
程序员文章站
2022-06-09 17:24:35
...
tf.train.import_meta_graph 报错
Traceback (most recent call last):
File "freeze_graph.py", line 109, in <module>
main(parse_arguments(sys.argv[1:]))
File "freeze_graph.py", line 50, in main
saver = tf.train.import_meta_graph(os.path.join(model_dir_exp, meta_file), clear_devices=True)
File "/root/anaconda3/envs/tsp/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1909, in import_meta_graph
**kwargs)
File "/root/anaconda3/envs/tsp/lib/python3.6/site-packages/tensorflow/python/framework/meta_graph.py", line 737, in import_scoped_meta_graph
producer_op_list=producer_op_list)
File "/root/anaconda3/envs/tsp/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 432, in new_func
return func(*args, **kwargs)
File "/root/anaconda3/envs/tsp/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 431, in import_graph_def
_RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
File "/root/anaconda3/envs/tsp/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 211, in _RemoveDefaultAttrs
op_def = op_dict[node.op]
KeyError: 'ImageProjectiveTransform'
解决办法:
import tensorflow.contrib.image
参考:
上一篇: 初识 DataBinding
下一篇: discuz怎样判断用户是否被激活?
推荐阅读
-
为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方法,imagick_PHP教程
-
mysql提示1203错误解决方案
-
Ubuntu 15.04下MySQL 5.6.25不支持中文解决办法
-
windows2008下配置iis+mysql+phpmyadmin运行phpmyadmin提示错误
-
phpExcel导出大量数据出现内存溢出错误的解决方法_PHP教程
-
使用Ajax请求后台数据,然后的时候出现Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0的错误。
-
EF(EntityFramework)与mysql使用,取数据报错,linq实体映射错误
-
微信支付集成错误
-
【已解决】前端到后端400错误(The server cannot or will not process the request due to...)
-
oneThink 数据库连接失败,总提示密码不对的解决办法,onethink数据库连接