我正在尝试安装Tensorflow对象检测API,遵循。直到我不得不在模型/研究目录中运行python -m pip安装时,一切都很顺利。它开始收集和安装各种软件包,但当达到tf-型号官方安装时,会产生以下错误:
ERROR: Cannot install object-detection because these package versions have conflicting dependencies.
The conflict is caused by:
tf-models-official 2.7.0 depends on tensorflow-addons
tf
我正在尝试使用tensorflow创建一个android应用程序来进行对象分类。我使用MobileNet-SSD训练了一个简单的模型。我根据给定的的guid行创建了应用程序。它与示例中使用的模型一起工作得很好,但对于我创建的模型,它给了我以下错误:
Caused by: java.lang.RuntimeException: Node 'output' does not exist in model 'file:///android_asset/ssd_mobilenet_2classes.pb'
at org.tensorflow.contrib.a
我正在尝试训练Tensorflow对象检测模型。当我运行最后的命令进行训练时:
对于tensorflow版本1.14:python model_main.py --logtostderr --train_dir="/path to dir training/" --pipeline_config_path="Path to ssd_mobilenet_v1_pets_Colab.config"
对于TensorFlow2.0版:python model_main_tf2.py --logtostderr --train_dir="/path to dir
我从这个开始学习TensorFlow的对象检测,但在trainer导入模块上遇到了一些问题。
我已经下载了Tensorflow 和,并且已经为Python编译了object_detection\protos,还准备了带有标签的图像和设置环境变量。
现在一切正常,但从运行3_train.py脚本时出现错误
File "C:\Users\Username\Desktop\TensorFlow\TensorFlow_Tut_3_Object_Detection_Walk-through-master\3_train.py", line 11, in <module>
我不介意是YAML、JSON、.ini还是其他什么。
用户应该能够通过以下配置文件在调用函数时更改值:
import tensorflow as tf
# config file reading happens here (expected scenario):
f = read_the_config_file()
reduction = f["reduction"] # retrieved the reduction value
# pass `reduction` to the loss function:
loss = tf.keras.losses(reducti