遮罩R-CNN演示

时间:2020-07-08 23:28:20

标签: python git jupyter-notebook anaconda faster-rcnn

尝试从以下github运行https://github.com/matterport/Mask_RCNN的Mask R-CNN演示。在尝试jupyter演示时,我遇到了以下早期问题:

ModuleNotFoundError:没有名为“ pycocotools”的模块

环顾四周后,我发现可以通过克隆以下github来修复它:https://github.com/cocodataset/cocoapi

在尝试克隆它时,我遇到了另一个问题:

pip安装'git + https://github.com/philferriere/cocoapi.git#egg=pycocotools'

收集pycocotools 将https://github.com/philferriere/cocoapi.git克隆到c:\ users \ jake \ appdata \ local \ temp \ pip-install-4y3nhy6i \ pycocotools 运行命令git clone -q https://github.com/philferriere/cocoapi.git'C:\ Users \ Jake \ AppData \ Local \ Temp \ pip-install-4y3nhy6i \ pycocotools' 错误:命令错误,退出状态为1: 命令:'C:\ Users \ Jake \ anaconda3 \ python.exe'-c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'C:\ Users \ Jake \ AppData \ Local \ Temp \ pip-install-4y3nhy6i \ pycocotools \ setup.py'“”“ ;; 文件 ='“'”'C:\ Users \ Jake \ AppData \ Local \ Temp \ pip-install-4y3nhy6i \ pycocotools \ setup.py'“'”'; f = getattr(tokenize, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', '“'”'\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))'egg_info --egg-base'C:\ Users \ Jake \ AppData \ Local \ Temp \ pip-install-4y3nhy6i \ pycocotools \ pip-egg-info' cwd:C:\ Users \ Jake \ AppData \ Local \ Temp \ pip-install-4y3nhy6i \ pycocotools
完整的输出(5行): 追溯(最近一次通话): 文件“”,第1行,位于 打开文件“ C:\ Users \ Jake \ anaconda3 \ lib \ tokenize.py”,行447 缓冲区= _builtin_open(文件名,'rb') FileNotFoundError:[错误2]没有这样的文件或目录:'C:\ Users \ Jake \ AppData \ Local \ Temp \ pip-install-4y3nhy6i \ pycocotools \ setup.py' ---------------------------------------- 错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。

因此,我最终决定手动克隆它并运行:

python PythonAPI / setup.py build_ext安装

但我遇到另一个错误:

C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.12.25827 \ bin \ HostX86 \ x64 \ cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -IC:\ Users \ Jake \ anaconda3 \ lib \ site-packages \ numpy \ core \ include -I ../ common -IC:\ Users \ Jake \ anaconda3 \ include -IC:\ Users \ Jake \ anaconda3 \ include“ -IC:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.12.25827 \ ATLMFC \ include”“ -IC:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.12.25827 \ include“” -IC:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ include \ um“” -IC:\ Program Files(x86) \ Windows Kits \ 10 \ include \ 10.0.16299.0 \ ucrt“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ shared“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ um“” -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ winrt“ /Tc../common/maskApi.c / Fobuild \ temp .win-amd64-3.7 \ Release ../ common / maskApi.obj -Wno-cpp -Wno-unused-function -std = c99 cl:命令行错误D8021:无效的数字参数'/ Wno-cpp' 错误:命令'C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.12.25827 \ bin \ HostX86 \ x64 \ cl.exe'失败,退出状态为2

如果要紧的话,我正在使用Windows 10和anaconda。

我个人是一个强大的SDE,但是对python,jupyter,anaconda甚至这种安装方式都不熟悉。

任何帮助将不胜感激!

谢谢

0 个答案:

没有答案