has no attribute 'register_op_list'

来源:6-22 TensorFlow-ssd 模型训练-实操(2)

N1ghtV0yager

2021-01-10

chlts@chlts-pc:~/models/research$ python3 object_detection/model_main.py pipeline_config_path=/home/chlts/models/research/object_detection/samples/configs/ssd_resnet50_v1_fpn_shared_box_predictor_640x640_coco14_sync.config --modeldir=/home/chlts/muke/dataset/widerface/mobilev1_model --num_train_steps=100000 alsologtoster
2021-01-10 16:11:38.154432: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘libcudart.so.10.1’; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-9.0/lib64
2021-01-10 16:11:38.154463: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File “object_detection/model_main.py”, line 25, in
from object_detection import model_lib
File “/home/chlts/models/research/object_detection/model_lib.py”, line 30, in
from object_detection import exporter as exporter_lib
File “/home/chlts/models/research/object_detection/exporter.py”, line 23, in
from object_detection.builders import graph_rewriter_builder
File “/home/chlts/models/research/object_detection/builders/graph_rewriter_builder.py”, line 21, in
from tensorflow.contrib import quantize as contrib_quantize
File “/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/init.py”, line 38, in
from tensorflow.contrib import cloud
File “/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/cloud/init.py”, line 24, in
from tensorflow.contrib.cloud.python.ops.bigquery_reader_ops import *
File “/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/cloud/python/ops/bigquery_reader_ops.py”, line 21, in
from tensorflow.contrib.cloud.python.ops import gen_bigquery_reader_ops
File “/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py”, line 307, in
_op_def_lib = _InitOpDefLibrary(b"\n\355\001\n\016BigQueryReader\032\024\n\rreader_handle\030\007\200\001\001"\027\n\tcontainer\022\006string\032\002\022\000"\031\n\013shared_name\022\006string\032\002\022\000"\024\n\nproject_id\022\006string"\024\n\ndataset_id\022\006string"\022\n\010table_id\022\006string"\027\n\007columns\022\014list(string)"\027\n\020timestamp_millis\022\003int"\034\n\016test_end_point\022\006string\032\002\022\000\210\001\001\n\331\001\n GenerateBigQueryReaderPartitions\032\016\n\npartitions\030\007"\024\n\nproject_id\022\006string"\024\n\ndataset_id\022\006string"\022\n\010table_id\022\006string"\027\n\007columns\022\014list(string)"\027\n\020timestamp_millis\022\003int"\025\n\016num_partitions\022\003int"\034\n\016test_end_point\022\006string\032\002\022\000")
File “/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py”, line 215, in _InitOpDefLibrary
_op_def_registry.register_op_list(op_list)
AttributeError: module ‘tensorflow.python.framework.op_def_registry’ has no attribute ‘register_op_list’

写回答

1回答

会写代码的好厨师

2021-01-23

  1. python版本用3.5

  2. cuda用10.0,tf用1.14

0
0

Python3+TensorFlow打造人脸识别智能小程序

理论与实战项目双管齐下,让AI技术真正落地应用,适合毕设展示。

1099 学习 · 538 问题

查看课程