I have tried to use SSD to retrain my model, but it doesn't work well.
and realize that I have not adding anchor boxes.
However, the help document is not enough to build the ssd.
You can follow what I did in the following to create the layer.
%% SSD with anchor
featureExtractionNetwork = resnet50;% very inportant here
%lgraph = ssdLayers(inputSize,1,featureExtractionNetwork)
%lgraph = ssdLayers(imageSize, numClasses, baseNetwork, anchorBoxes, layersToConnect);
anchorBoxes = {[ 52 14; 52 11; 41 13; 46 10; 40 7; 3 1]};
featureLayer = "activation_43_relu";%important here
lgraph= ssdLayers(inputSize, 1, featureExtractionNetwork, anchorBoxes,featureLayer)
analyzeNetwork(lgraph)
see the detail in ssdlayer