Custom Mask-rcnn

조회 수: 4 (최근 30일)
Claudia De Clemente
Claudia De Clemente 2023년 5월 5일
답변: Sachin 2023년 5월 15일
Hello, is it possible to make a smaller mask rcnn? that is, to build it on a smaller res-net 50? when training YOLO, i can choose the feature extraction layer. Can I do it also for Mask rcnn? I don't really understand the literature, and the training of the net is taking so long that I was not able to complete a single training session, let alone try to tune the right hyperparameters for my application. I have a set of brigthfield images, [2048x2048], which I downsize to 300x300x3 for the training.
Thank you to whoever will respond.

답변 (1개)

Sachin
Sachin 2023년 5월 15일
Hi
I understand that you want to create a smaller mask RCNN. The following workaround might be of good help to you.
You can use ‘removelayers’ to remove a particular layers and “addlayers” to add a layers.
Here is an example which you can refer:
net = resnet50; % resnet object model
lgraph = layerGraph(net); % architecture of a deep learning network
lgraph = removeLayers(lgraph, {'fc1000', 'prob', 'ClassificationLayer_predictions'}); % to remove a layer
feature_layer = 'activation_40_relu'; % feature extraction layer
lgraph = connectLayers(lgraph, 'res5c_relu', feature_layer); % connect all the layers
Refer the following MATLAB documentation page for more information about ‘removelayers’
Refer the following MATLAB documentation page for more information about ‘addlayers’
For more information also refer this MATLAB answer
Thanks

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by