![](/img/trans.png)
[英]Python(Flask,JayDeBeApi) RuntimeError: No matching overloads found for prepareStatement
[英]RuntimeError: Matching Python module for ImageSensor not found
我想運行此測試: https : //github.com/numenta/htmresearch/tree/master/projects/image_test但是當我執行python run_mnist_experiment.py
,出現錯誤:
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
我該怎么做才能運行此測試?
在google和numenta存儲庫上搜索后,我發現可以在nupic.vision中找到此模塊。 因此,您只需要安裝該倉庫即可。 這是我在Google上找到的來源。 只需使用它即可解決您的問題。
該模塊本身可以在以下位置找到: https : //github.com/numenta/nupic.vision/blob/master/src/nupic/vision/regions/ImageSensor.py
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.