How to load trained R-CNN model to SIMULINK
Below is the MATLAB code that I used to train my R-CNN Object Detector
rcnn = trainRCNNObjectDetector(ROI, cifar10Net, options, …
‘NegativeOverlapRange’, [0 0.3], ‘PositiveOverlapRange’,[0.5 1])
save(‘C:UsersPC1Desktoprcnn_Model_2.mat’,’rcnn’);
Now my problem is the blocks like ‘from File’ in SIMULINK can not take any MAT file that are not timeseries object.
Below in the data format that I saved using the codes above,
Name Size Bytes Class Attributes
rcnn 1×1 482631 rcnnObjectDetector
Below is the properties of the model after being loaded,
rcnn =
rcnnObjectDetector with properties:
Network: [1×1 SeriesNetwork]
ClassNames: {‘Left’ ‘Stop’ ‘Go’ ‘Right’ ‘Background’}
RegionProposalFcn: @rcnnObjectDetector.proposeRegions
So, is that any possible way to import the trained network to SIMULINK?Below is the MATLAB code that I used to train my R-CNN Object Detector
rcnn = trainRCNNObjectDetector(ROI, cifar10Net, options, …
‘NegativeOverlapRange’, [0 0.3], ‘PositiveOverlapRange’,[0.5 1])
save(‘C:UsersPC1Desktoprcnn_Model_2.mat’,’rcnn’);
Now my problem is the blocks like ‘from File’ in SIMULINK can not take any MAT file that are not timeseries object.
Below in the data format that I saved using the codes above,
Name Size Bytes Class Attributes
rcnn 1×1 482631 rcnnObjectDetector
Below is the properties of the model after being loaded,
rcnn =
rcnnObjectDetector with properties:
Network: [1×1 SeriesNetwork]
ClassNames: {‘Left’ ‘Stop’ ‘Go’ ‘Right’ ‘Background’}
RegionProposalFcn: @rcnnObjectDetector.proposeRegions
So, is that any possible way to import the trained network to SIMULINK? Below is the MATLAB code that I used to train my R-CNN Object Detector
rcnn = trainRCNNObjectDetector(ROI, cifar10Net, options, …
‘NegativeOverlapRange’, [0 0.3], ‘PositiveOverlapRange’,[0.5 1])
save(‘C:UsersPC1Desktoprcnn_Model_2.mat’,’rcnn’);
Now my problem is the blocks like ‘from File’ in SIMULINK can not take any MAT file that are not timeseries object.
Below in the data format that I saved using the codes above,
Name Size Bytes Class Attributes
rcnn 1×1 482631 rcnnObjectDetector
Below is the properties of the model after being loaded,
rcnn =
rcnnObjectDetector with properties:
Network: [1×1 SeriesNetwork]
ClassNames: {‘Left’ ‘Stop’ ‘Go’ ‘Right’ ‘Background’}
RegionProposalFcn: @rcnnObjectDetector.proposeRegions
So, is that any possible way to import the trained network to SIMULINK? r-cnn, neural networks MATLAB Answers — New Questions