close

Mask RCNN教學的YOUTUBE在https://www.youtube.com/watch?v=2TikTv6PWDw

練習Mask RCNN的路上, 還是很多荊棘要處理啊...

Youtube上的教學影片, 第一步安裝就有這麼多問題....

這次是遇到pip install imgaug發生錯誤

未命名.png

Collecting imgaug
  Using cached https://files.pythonhosted.org/packages/f2/e3/4e19b465d6662e841e2960d77aa187414315b463302142a001a389cdaf2a/imgaug-0.2.8-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.15.0 in d:\programdata\anaconda3\envs\maskrcnn\lib\site-packages (from imgaug) (1.16.2)
Requirement already satisfied: Pillow in d:\programdata\anaconda3\envs\maskrcnn\lib\site-packages (from imgaug) (5.4.1)
Collecting imageio (from imgaug)
  Downloading https://files.pythonhosted.org/packages/af/0a/943c965d372dae0b1f1482677d29030ab834351a61a9a632fd62f27f1523/imageio-2.5.0-py3-none-any.whl (3.3MB)
    100% |████████████████████████████████| 3.3MB 900kB/s
Requirement already satisfied: six in d:\programdata\anaconda3\envs\maskrcnn\lib\site-packages (from imgaug) (1.12.0)
Requirement already satisfied: scipy in d:\programdata\anaconda3\envs\maskrcnn\lib\site-packages (from imgaug) (1.2.1)
Collecting opencv-python (from imgaug)
  Using cached https://files.pythonhosted.org/packages/96/30/99bd865802cd5f425c42efd2ee4e10bd3bc605640008f03e3c72a1dbe320/opencv_python-4.0.0.21-cp36-cp36m-win_amd64.whl
Requirement already satisfied: matplotlib in d:\programdata\anaconda3\envs\maskrcnn\lib\site-packages (from imgaug) (3.0.2)
Collecting Shapely (from imgaug)
  Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\USER\AppData\Local\Temp\pip-install-k6uqv533\Shapely\setup.py", line 80, in <module>
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "C:\Users\USER\AppData\Local\Temp\pip-install-k6uqv533\Shapely\shapely\_buildcfg.py", line 200, in <module>
        lgeos = CDLL("geos_c.dll")
      File "D:\ProgramData\Anaconda3\envs\MASKRCNN\lib\ctypes\__init__.py", line 348, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: [WinError 126] 找不到指定的模組。

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\USER\AppData\Local\Temp\pip-install-k6uqv533\Shapely\

看來是Shapely安裝出錯.....

用pip直接安裝Shapely也失敗

上這個網站吧!

https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely

未命名.png

未命名.png

總算安裝好了, Demo也可以執行了

 

 

 

arrow
arrow
    文章標籤
    imgaug
    全站熱搜
    創作者介紹
    創作者 張郎屋 的頭像
    張郎屋

    張郎生活的筆記

    張郎屋 發表在 痞客邦 留言(0) 人氣()