function out = getSSDNW

%   Copyright 2019-2020 The MathWorks, Inc.

% return a trained series network object for SSD network
if  ~exist('ssdResNet50VehicleExample_20a.mat','file')
    % Download pretrained detector.
    disp('Downloading pretrained detector (44 MB)...');
    pretrainedURL = 'https://www.mathworks.com/supportfiles/vision/data/ssdResNet50VehicleExample_20a.mat';
    websave('ssdResNet50VehicleExample_20a.mat',pretrainedURL);
end
nnet = load('ssdResNet50VehicleExample_20a.mat');
out = nnet.detector.Network;

end
