Error using ("Weights","none") for pretrained networks
Show older comments
Hi all,
When i run this code:
lgraph = googlenet("Weights","none");
detectorGooglenet= trainFastRCNNObjectDetector(trainingDataTable,lgraph,options)
these errors return:
Invalid network.
Caused by:
Network: The network must contain one ROI input layer. See the documentation for more details about creating Fast R-CNN networks.
Network: The network must contain one R-CNN box regression layer. See the documentation for more details about creating Fast R-CNN networks.
Network: The network must contain one ROI max pooling layer. See the documentation for more details about creating Fast or Faster R-CNN networks.
Layer 'output': The input size must be 1×1×3. The classification layer expects the third input dimension to be the number of object classes the network should to detect (2 classes) plus 1. The additional class is required for the "background" class. See the documentation for more details about creating Fast or Faster R-CNN networks.
When i run this code i get no erros.
lgraph = googlenet("Weights","none");
detectorGooglenet= trainFastRCNNObjectDetector(trainingDataTable,'googlenet',options)
I dont know whats wrong, and the cloud cumputer i run this on dosent have the support package for the pretrained network. Can anyone explain the diffrence in the networks and why it appears that some layers suddenly are "missing"? and dose anyone know of a solution to the problem so i can run the first code example?
Thanks for reading!
Accepted Answer
More Answers (0)
Categories
Find more on Object Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!