필터 지우기
필터 지우기

How to test trained fasterRCNN

조회 수: 2 (최근 30일)
Pawel Habrzyk
Pawel Habrzyk 2020년 3월 6일
댓글: Sai Bhargav Avula 2020년 3월 26일
So I've been trying to train a fasterRCNN, but unfortunetly test it on my dataset.
I am aplllying the same transformation to both trainingData and testData, but it doesn't work.
My log:
Invalid transform function defined on datastore.
Invalid transform function defined on datastore.
The cause of the error was:
Error using bboxresize>iParseInputs (line 89)
The value of 'bboxA' is invalid. Expected input number 1, bboxA, to be integer-valued.
Error in bboxresize (line 49)
params = iParseInputs(bboxA,scale);
Error in untitled>preprocessData (line 97)
data{2} = bboxresize(data{2},scale);
Error in untitled>@(data)preprocessData(data,inputSize) (line 73)
testData= transform(testData,@(data)preprocessData(data,inputSize));
Error in matlab.io.datastore.TransformedDatastore/read (line 148)
data = self.Transforms{ii}(data);
Error in nnet.internal.cnn.DataLoader/manageReadQueue (line 161)
data = read(self.Datastore);
Error in nnet.internal.cnn.DataLoader/nextBatch (line 88)
manageReadQueue(self);
Error in nnet.internal.cnn.GeneralDatastoreDispatcher/readNextBatchIntoCache (line 350)
data = nextBatch(this.DataLoader);
Error in nnet.internal.cnn.GeneralDatastoreDispatcher/next (line 307)
this.readNextBatchIntoCache();
Error in DAGNetwork/activationsMIMO (line 162)
X = dispatcher.next();
Error in vision.internal.cnn.fastrcnn.detectUsingDatastore (line 14)
[features, regression, proposals] = network.activationsMIMO(ds,...
Error in fasterRCNNObjectDetector/detect (line 535)
varargout{1} = vision.internal.cnn.fastrcnn.detectUsingDatastore(ds, this.Network, dataMap, layerOut, params);
Error in untitled (line 76)
detectionResults = detect(detector,testData,'MinibatchSize',1);
23 rethrow(ME);
Your MATLAB session has timed out. All license keys have been returned.
>> detectionResults = detect(detector,testData,'MinibatchSize',1);
Invalid transform function defined on datastore.
The cause of the error was:
Error using bboxresize>iParseInputs (line 89)
The value of 'bboxA' is invalid. Expected input number 1, bboxA, to be integer-valued.
Error in bboxresize (line 49)
params = iParseInputs(bboxA,scale);
Error in untitled>preprocessData (line 97)
data{2} = bboxresize(data{2},scale);
Error in untitled>@(data)preprocessData(data,inputSize) (line 73)
testData= transform(testData,@(data)preprocessData(data,inputSize));
Error in matlab.io.datastore.TransformedDatastore/read (line 148)
data = self.Transforms{ii}(data);
Error in nnet.internal.cnn.DataLoader/manageReadQueue (line 161)
data = read(self.Datastore);
Error in nnet.internal.cnn.DataLoader/nextBatch (line 88)
manageReadQueue(self);
Error in nnet.internal.cnn.GeneralDatastoreDispatcher/readNextBatchIntoCache (line 350)
data = nextBatch(this.DataLoader);
Error in nnet.internal.cnn.GeneralDatastoreDispatcher/next (line 307)
this.readNextBatchIntoCache();
Error in DAGNetwork/activationsMIMO (line 162)
X = dispatcher.next();
Error in vision.internal.cnn.fastrcnn.detectUsingDatastore (line 14)
[features, regression, proposals] = network.activationsMIMO(ds,...
Error in fasterRCNNObjectDetector/detect (line 535)
varargout{1} = vision.internal.cnn.fastrcnn.detectUsingDatastore(ds, this.Network, dataMap, layerOut, params);
23 rethrow(ME);
>> testData
testData =
TransformedDatastore with properties:
UnderlyingDatastore: [1×1 matlab.io.datastore.CombinedDatastore]
Transforms: {@(data)preprocessData(data,inputSize)}
IncludeInfo: 0
  댓글 수: 1
Sai Bhargav Avula
Sai Bhargav Avula 2020년 3월 26일
Can you share the transforms that was applied on the datastore object?

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by