Azzera filtri
Azzera filtri

error in gason mask rcnn

10 visualizzazioni (ultimi 30 giorni)
mohd akmal masud
mohd akmal masud il 9 Mag 2023
Risposto: Shivam Malviya il 19 Mag 2023
Dear Sir,
I got error when run the code of mask rcnn.
the error like below
but all the step I was follow correctly.
Unrecognized function or variable 'gasonMex'.
Error in gason (line 53)
out = gasonMex( 'convert', in );
Error in CocoApi (line 61)
coco.data=gason(fileread(annFile)); end
Error in unpackAnnotations (line 7)
coco = CocoApi(annotationFile);
  7 Commenti
mohd akmal masud
mohd akmal masud il 10 Mag 2023
Modificato: mohd akmal masud il 10 Mag 2023
YAH..I WAS TRY THE METHOD BUT STILL ERROR

Accedi per commentare.

Risposta accettata

Shivam Malviya
Shivam Malviya il 19 Mag 2023
Hi,
It appears that you are currently working on instance segmentation using Mask R-CNN and using the COCO API for MATLAB to access the annotation data; however, you are running into an error that "gasonMex" is unrecognized.
This error causing is because the gason parser is not being compiled. To compile it, follow the instruction below:
  • Clone the COCO API GitHub repository as using the following command:
git clone https://github.com/cocodataset/cocoapi
  • In MATLAB, change your current directory to "cocoapi/MatlabAPI".
  • Ensure that your system has a version of GCC that supports C++11 (version 4.7 or later).
  • To compile the gason parser, execute the following MATLAB command:
mex('CXXFLAGS=$CXXFLAGS -std=c++11 -Wall','-largeArrayDims','private/gasonMex.cpp','../common/gason.cpp', '-I../common/','-outdir','private');
Refer to the following links for a better understanding;
  • https://in.mathworks.com/help/deeplearning/ug/instance-segmentation-using-mask-rcnn.html
  • https://github.com/cocodataset/cocoapi
Regards,
Shivam

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by