필터 지우기
필터 지우기

Getting error when using semanticseg function

조회 수: 4 (최근 30일)
Manusree Bhatter
Manusree Bhatter 2020년 7월 28일
답변: Harsha Priya Daggubati 2020년 7월 31일
I am trying to use the semanticseg function to segment an image of dimensions 256x232x192 with a trained DAGnetwork. However I keep getting an error saying this:
"Error using gpuArray/cat. Maximum variable size allowed on the device is exceeded.
Error in nnet.internal.cnn.layer.Concatenation/predict (line 54)
Z = cat(this.ConcatenationAxis, X{:});
Error in nnet.internal.cnn.DAGNetwork/activations (line 571)
outputActivations = thisLayer.predict(XForThisLayer);
Error in DAGNetwork/calculateActivations (line 86)
YBatch = predictNetwork.activations({X}, layerIndex, layerOutputIndex);
Error in DAGNetwork/activations (line 138)
Y = this.calculateActivations(X, layerIndex, layerOutputIndex, varargin{:});
Error in semanticseg>iClassifyImagePixels (line 447)
allScores = activations(net, X, name, ...
Error in semanticseg (line 248)
[Lroi, scores, allScores] = iClassifyImagePixels(Iroi, net, params);"
My gpu has 24 GB of RAM, so it seems extremely unlikely that I am running out of memory running this, considering that the image gpuarray I am inputting is much less than 24 GB. I am able to input patches of [64 64 64] and [128 128 128] of the image succesfully and segment it, but I need to be able to input the whole image into the function as well. Is there a bug within the semanticseg function? How can I input the whole image into the semanticseg function? Thank you in advance!
  댓글 수: 2
Walter Roberson
Walter Roberson 2020년 7월 28일
It is not uncommon to start running out of memory when you have an array about 1/3 of the maximum memory of the GPU, and becomes quite likely when you have an array that exceeds half of the maximum memory of the GPU.
Manusree Bhatter
Manusree Bhatter 2020년 7월 28일
The array is less than 1 megabyte, it is nowhere near the maximum memory of the GPU. Could there be an issue with the semanticseg function itself?

댓글을 달려면 로그인하십시오.

답변 (1개)

Harsha Priya Daggubati
Harsha Priya Daggubati 2020년 7월 31일

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by