Tensorflow Object Detection API安装——Ubuntu

本文详细介绍了在Ubuntu系统中安装Tensorflow Object Detection API的步骤,包括安装anaconda、创建虚拟环境、安装Tensorflow-gpu、pycocotools以及解决安装过程中遇到的BUG,如'unicode' NameError和'resnet_v1_50' TypeError问题。
摘要由CSDN通过智能技术生成

Tensorflow Object Detection API安装——Ubuntu

安装anaconda

安装教程
注意:不要用sudo安装!

创建虚拟环境

conda create -n tf14 python=3.7

安装Tensorflow-gpu

conda install tensorflow-gpu=1.14

安装pycocotools

pip install pycocotools

安装Tensorflow Object Detection API

  1. 下载模型文件https://github.com/tensorflow/models
  2. 上传到服务器,解压
  3. 安装
	cd models-master/research
	protoc object_detection/protos/*.proto --python_out=.
	python setup.py install
	cd slim
	python setup.py install
	cd ..
	python object_detection/builders/model_builder_test.py
  1. BUG记录


with tf.variable_scope(
    self._resnet_scope_name, reuse=self._reuse_weights) as scope:
  with slim.arg_scope(resnet_v1.resnet_arg_scope()):
    with (slim.arg_scope(self._conv_hyperparams_fn())
          if self._override_base_feature_extractor_hyperparams else
          context_manager.IdentityContextManager()):
      _,image_features = self._resnet_base_fn(
          inputs=ops.pad_to_multiple(preprocessed_inputs,
                                     self._pad_to_multiple),
          num_classes=None,
          is_training=None,
          global_pool=False,
          output_stride=None,
          store_non_strided_activations=True) #括号填在这里
          #min_base_depth=self._min_depth,
          #depth_multiplier=self._depth_multiplier)
          #scope=self.scope
          )

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值