如何在制作tfrecord文件时解决错误?

时间:2020-10-12 06:12:35

标签: python tensorflow object-detection object-detection-api tfrecord

所以我遇到这个脚本错误

# Define the path to the file
$appSettingsFile="$env:SYSTEM_ARTIFACTSDIRECTORY\<rest_of_the_path>\appconfig.json"

# Pass it to the Azure CLI command
az appconfig kv import -n $appConfigName -s file --path $appSettingsFile --format json --separator . --yes

然后评论是这样的:

'''python generate_tfrecord.py --csv_input train_labels.csv --image_dir train --labelmap_dir label_map.pbtxt --output_path train.record'''

1 个答案:

答案 0 :(得分:0)

您的generate_tfrecord.py找不到您的对象检测工具位置。

您需要克隆/下载tensorflow对象检测代码,然后有2个选项:

  • 将文件放在研究文件夹中并在其中运行

  • 在python文件的顶部添加以下行:

    sys.path.append('/用户/张量流代码的路径/ models / research')

(填写张量流代码在设备上的位置的正确路径)

相关问题