Tensorflow Object Detection API(一)

网友投稿 1015 2022-09-01

Tensorflow Object Detection API(一)

Tensorflow Object Detection API(一)

1 ImportError: No module named 'object_detection'

Traceback (most recent call last):   File "object_detection/builders/model_builder_test.py", line 21, in     from object_detection.builders import model_builder

ImportError: No module named 'object_detection'

解决方法:在site-packages添加一个路径文件,如tensorflow_model.pth,必须以.pth为后缀,写上你要加入的模块文件所在的目录名称就是了,如:

H:\pythoncode\Tensorflow\models-master\research

H:\pythoncode\Tensorflow\models-master\research\slim

2 no such file or directory "object_detection/protos/*proto"

解决方法:运行下面代码

protoc object_detection/protos/anchor_generator.proto --python_out=. && protoc object_detection/protos/argmax_matcher.proto --python_out=. && protoc object_detection/protos/bipartite_matcher.proto --python_out=. && protoc object_detection/protos/box_coder.proto --python_out=. && protoc object_detection/protos/box_predictor.proto --python_out=. && protoc object_detection/protos/eval.proto --python_out=. && protoc object_detection/protos/faster_rcnn.proto --python_out=. && protoc object_detection/protos/faster_rcnn_box_coder.proto --python_out=. && protoc object_detection/protos/graph_rewriter.proto --python_out=. && protoc object_detection/protos/grid_anchor_generator.proto --python_out=. && protoc object_detection/protos/hyperparams.proto --python_out=. && protoc object_detection/protos/image_resizer.proto --python_out=. && protoc object_detection/protos/input_reader.proto --python_out=. && protoc object_detection/protos/keypoint_box_coder.proto --python_out=. && protoc object_detection/protos/losses.proto --python_out=. && protoc object_detection/protos/matcher.proto --python_out=. && protoc object_detection/protos/mean_stddev_box_coder.proto --python_out=. && protoc object_detection/protos/model.proto --python_out=. && protoc object_detection/protos/multiscale_anchor_generator.proto --python_out=. && protoc object_detection/protos/optimizer.proto --python_out=. && protoc object_detection/protos/pipeline.proto --python_out=. && protoc object_detection/protos/post_processing.proto --python_out=. && protoc object_detection/protos/preprocessor.proto --python_out=. && protoc object_detection/protos/region_similarity_calculator.proto --python_out=. && protoc object_detection/protos/square_box_coder.proto --python_out=. && protoc object_detection/protos/ssd.proto --python_out=. && protoc object_detection/protos/ssd_anchor_generator.proto --python_out=. && protoc object_detection/protos/string_int_label_map.proto --python_out=.

3 打开jupyter notebook时报错

ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

​​解决方法:conda ​​​​install​​​ ​​nodejs​​

[1] ​​Win7配置和运行TensorFlow:Object_Detection_API步骤​​

[2] ​​TensorFlow Object Detection API(Windows下训练)​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Tensorflow函数以及参数说明
下一篇:百万级高并发mongodb集群性能数十倍提升优化实践(上篇)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~