【发布时间】:2021-10-15 14:01:07
【问题描述】:
我找到了安装说明,但尽管设置了 sys 路径,但它给了我错误提示 No such file or directory: 'content/drive/MyDrive/TensorFlow/models/research'
这是我从克隆存储库到设置路径的全部代码:
%cd /content/drive/My Drive/Tensorflow
!git clone https://github.com/tensorflow/models.git
!apt-get install protobuf-compiler python-lxml python-pil
!pip install Cython pandas tf-slim lvis
%cd /content/drive/My Drive/Tensorflow/models/research
!protoc object_detection/protos/*.proto --python_out=.
import os
import sys
os.environ['PYTHONPATH']+=":/content/drive/MyDrive/TensorFlow/models"
sys.path.append("/content/drive/MyDrive/TensorFlow/models/research")
sys.path.append('/content/drive/MyDrive/TensorFlow/models/research/slim')
print("done")
【问题讨论】:
标签: python tensorflow object-detection