我正在使用Tensor对象检测API创建一个自定义对象检测模型。我安装了本笔记本中提到的所有内容,并遵循本笔记本中提到的相同步骤,但当我尝试运行model_builder_测试时。py文件
import os
os.environ['PYTHONPATH'] += ':/../models/research/:/../models/research/slim/'
!python object_detection/builders/model_builder_test.py
我得到以下错误:
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 21, in <module>
from object_detection.builders import model_builder
File "/home/u83829/object_detection_usecase/tensorflow/models/research/object_detection/builders/model_builder.py", line 23, in <module>
from object_detection.builders import image_resizer_builder
File "/home/u83829/object_detection_usecase/tensorflow/models/research/object_detection/builders/image_resizer_builder.py", line 19, in <module>
from object_detection.core import preprocessor
File "/home/u83829/object_detection_usecase/tensorflow/models/research/object_detection/core/preprocessor.py", line 82, in <module>
from object_detection.core import densepose_ops
File "/home/u83829/object_detection_usecase/tensorflow/models/research/object_detection/core/densepose_ops.py", line 29, in <module>
import scipy.io
File "/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelpython/latest/lib/python3.7/site-packages/scipy/io/__init__.py", line 97, in <module>
from .matlab import loadmat, savemat, whosmat, byteordercodes
File "/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelpython/latest/lib/python3.7/site-packages/scipy/io/matlab/__init__.py", line 11, in <module>
from .mio import loadmat, savemat, whosmat
File "/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelpython/latest/lib/python3.7/site-packages/scipy/io/matlab/mio.py", line 9, in <module>
from .mio4 import MatFile4Reader, MatFile4Writer
File "/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelpython/latest/lib/python3.7/site-packages/scipy/io/matlab/mio4.py", line 9, in <module>
import scipy.sparse
File "/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelpython/latest/lib/python3.7/site-packages/scipy/sparse/__init__.py", line 228, in <module>
from .csr import *
File "/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelpython/latest/lib/python3.7/site-packages/scipy/sparse/csr.py", line 10, in <module>
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError: numpy.core.multiarray failed to import
我正在使用python 3.7。10和tensorflow 2.6。英特尔OneAPI Devcloud上的0。请帮我解决这个错误。
这个错误是因为你可能有一个版本的Numpy是不兼容的版本所使用的tenorflow目标检测API。要解决此问题,您可以使用下面的命令将Numpy升级到最新版本。
pip install -U numpy
试试这个,
pip uninstall numpy
然后
pip install numpy
对于numpy的特定版本,
pip install numpy==1.8
我想在多个CPU上训练,所以我运行这个命令 C:\用户\解决方案\桌面\Tensorflow\研究 我得到了下面的错误 Traceback(最近一次调用):文件"object_detection/train.py",第169行,在tf.app.run()文件"C:\用户\解决方案\AppData\本地\程序\Python\Python35\lib\site-包\tenorflow\python\平
我按照说明(https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md)安装了Tensorflow对象检测API。我在视窗10上使用蟒蛇,说明中的所有步骤似乎都完成了。 但是当尝试运行python对象检测/构建器/模型构建器测试时。为了测试安装,我得到:Import
运行以下代码: 给出以下错误:
当我尝试在Chrome中运行测试时,出现以下错误: 初始化方法AutomationUsingSelenium。蓝绿色。MyTestInitialize引发异常。OpenQA。硒。DriversServiceNotFoundException:OpenQA。硒。DriversServiceNotFoundException 原因是什么?
问题内容: 当我尝试在Chrome中运行测试时出现此错误: 初始化方法AutomationUsingSelenium.SmuladorChrome.MyTestInitialize引发异常。OpenQA.Selenium.DriverServiceNotFoundException:OpenQA.Selenium.DriverServiceNotFoundException 原因是什么? 问题答案