3D-Convnet-for-Alzheimer-s-Detection
3D-Convnet-for-Alzheimer-s-Detection copied to clipboard
Input Error
I am getting error in the code for inputs. Please let me know the dimensions of the images that you are using as I am getting the following error. ValueError: Error when checking input: expected input to have 5 dimensions, but got array with shape(160, 1)
It seems that you may not be providing a 3D images as input. Typically the network requires a 5 dimensional input: 3 dimensions of the image, 1 dimension for channel and 1 dimension for the batch size. I don't remember exactly what the size of each dimension was, but this code is adaptable to different sizes as long as the number of dimensions are valid.
Hello Rishal,
I have a problem with the input shape for the model. According to the "training cnn.py" script, my input images are :(12, 106, 106, 120) in shape. Next, in "tflearn.input_data(shape=[None, sh[1], sh[2], sh[3], sh[4]])" layer, I don't understand 4th dimension. And is my image's shape correct?
can you please explain that?
You need to add a dimension to the images which will correspond to the channels (analogous to RGB in a regular 2D image)
Hi Rishal,
My input shape is ((1, 96, 96, 60),3). model=ResnetBuilder.build_resnet_34((1,96,96,60),3). Facing below error.
Traceback (most recent call last):
File "train_resnet.py", line 269, in
Any input is highly appreciated. Thanks!