运行tensorflow的对象检测模型(下载模型时出错)

运行tensorflow的对象检测模型(下载模型时出错),tensorflow,object-detection,Tensorflow,Object Detection,我使用Windows 10,我想使用tensorflow进行对象检测。我在jupyter笔记本中运行Tensorflow object_detection_教程时遇到问题。我安装了所有必要的软件包,并使用3.4版进行了Portbuf编译。我在下载模型时遇到了一个问题: File "<ipython-input-5-afc84e8d6c88>", line 6 file_name = os.path.basename(file.name) ^ Inden

我使用Windows 10,我想使用tensorflow进行对象检测。我在jupyter笔记本中运行Tensorflow object_detection_教程时遇到问题。我安装了所有必要的软件包,并使用3.4版进行了Portbuf编译。我在下载模型时遇到了一个问题:

File "<ipython-input-5-afc84e8d6c88>", line 6
    file_name = os.path.basename(file.name)
            ^
IndentationError: expected an indented block
文件“”,第6行
file_name=os.path.basename(file.name)
^
缩进错误:应为缩进块

问题现在解决了。我所做的是下载神经网络模型,提取它并添加一个本地路径(没有url地址)。这是一个代理问题


您需要在循环中添加缩进<代码>文件\u name=os…应该从更深的缩进级别开始。