2017-10-09 27 views
1

我要運行這個測試: https://github.com/numenta/htmresearch/tree/master/projects/image_test 但是,當我執行python run_mnist_experiment.py,我得到一個錯誤:RuntimeError:匹配的Python模塊ImageSensor沒有找到

ERR: Matching Python module for ImageSensor not found. [/root/bamboo-agent-home/xml-data/build-dir/NUP-CORE-NCRM/src/nupic/engine/RegionImplFactory.cpp line 444] 
Traceback (most recent call last): 
    File "/home/roy/PycharmProjects/htm/run_mnist_experiment.py", line 237, in <module> 
    net = createNetwork() 
    File "/home/roy/PycharmProjects/htm/run_mnist_experiment.py", line 98, in createNetwork 
    json.dumps(DEFAULT_IMAGESENSOR_PARAMS)) 
    File "/home/roy/.local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 639, in addRegion 
    engine_internal.Network.addRegion(self, name, nodeType, nodeParams) 
    File "/home/roy/.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 1167, in addRegion 
    return _engine_internal.Network_addRegion(self, *args, **kwargs) 
RuntimeError: Matching Python module for ImageSensor not found. 

所以我執行pip install ImageSensor,但我得到了這一點:

Collecting ImageSensor 
    Could not find a version that satisfies the requirement ImageSensor (from versions:) 
No matching distribution found for ImageSensor 

我該怎麼做才能運行此測試?

回答

1

在谷歌和numenta存儲庫上搜索後,我發現這個模塊可以在nupic.vision中找到。所以你只需要安裝該回購。 Here是我在google上找到的來源。只需使用它來解決您的問題。

該模塊本身可以在那裏找到:https://github.com/numenta/nupic.vision/blob/master/src/nupic/vision/regions/ImageSensor.py

+0

這可以幫助我很多!謝謝! –

+0

我的榮幸:)你可以將問題標記爲已解決,然後再回答我的答案。 –