我有64位的Windows8.1,使用这里推荐的http://deeplearning.net/software/theano/install_windows.html#installing-theanopythonwinpython发行版(python3.4)。我已经完成了教程的每一步(不包括CUDA的东西和GPU配置),卸载了所有的东西,又做了一次,但我的问题仍然存在。我正在尝试用千层面建立卷积神经网络。到目前为止,我测试的每一层都在工作——只有Conv2DLayer抛出错误。代码如下:
net2 = NeuralNet(
layers=[
('input', layers.InputLayer),
('conv1', layers.Conv2DLayer),
('pool1', layers.MaxPool2DLayer),
('hidden4', layers.DenseLayer),
('hidden5', layers.DenseLayer),
('output', layers.DenseLayer),
],
input_shape=(None, 1, 96, 96),
conv1_num_filters=32, conv1_filter_size=(3, 3),
pool1_pool_size=(2, 2),
hidden4_num_units=500, hidden5_num_units=500,
output_num_units=30, output_nonlinearity=None,
update_learning_rate=0.01,
update_momentum=0.9,
regression=True,
max_epochs=400,
verbose=1,
)
下面我粘贴了我得到的错误。我想gcc出了问题(我从教程中得到了准确的版本),但不能真正找出问题所在。我有最新版本的烤宽面条。我尝试过Anaconda和WinPython发行版。我尝试过Python2.7和3.4,但没有找到解决这个问题的任何方法。只有密集层/最大池层的网络运行良好。如果有任何建议能帮助我解决这个问题,我将不胜感激。在
错误消息:
^{pr2}$
我通过以下步骤成功地解决了我的问题:在这个网站上,https://www.kaggle.com/c/otto-group-product-classification-challenge/forums/t/13973/a-few-tips-to-install-theano-on-windows-64-bits/98833。显然,Theano在正确链接BLAS方面有问题,所以我下载并使用了openblas,错误消失了(下载和配置open-BLAS所需的链接和步骤可以在IshanAntony的答案中找到)。在
相关问题 更多 >
编程相关推荐