AWSGPU_DeepLearning
AWSGPU_DeepLearning copied to clipboard
Instructions given to make kfkd.py run seem to fail
Hi
Im not sure if you are still supporting this code, but I just wanted to inform you that the code doesn't seem to be working. Firstly, matplotlib was not installing, which I fixed by installing the following two packages before running setup.sh:
sudo apt-get install libpng-dev
sudo apt-get install libfreetype6-dev
But even despite this when I follow your steps of using the community AMI, and running the shell script, I get the following error:
Traceback (most recent call last):
File "AWSGPU_DeepLearning/kfkd.py", line 116, in
I am getting the same error as above.
I am also getting this error
To fix this issue, replace net2 with the following code
I believe cuda_convnet layers needs to be initialized.
net2 = NeuralNet(
layers=[
('input', layers.InputLayer),
('conv1', layers.Conv2DLayer),
('pool1', layers.MaxPool2DLayer),
('conv2', layers.Conv2DLayer),
('pool2', layers.MaxPool2DLayer),
('conv3', layers.Conv2DLayer),
('pool3', 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),
conv2_num_filters=64, conv2_filter_size=(2, 2), pool2_pool_size=(2, 2),
conv3_num_filters=128, conv3_filter_size=(2, 2), pool3_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=1000,
verbose=1,
)