and i'm getting this error:Error using importDarkNetLayers (line 38)
Cannot open file: ./cfg/yolov3-tiny.cfg
Error in importDarknetWeights (line 30)
moduleTypeList,moduleInfoList,layerToModuleIndex] = importDarkNetLayers(cfgfile);% only weights需要cutoff,layer都导入
Error in newyolo (line 19)
[lgModel,hyperParams] = importDarknetWeights(cfg_file,weight_file);
load Damagevehicle cfg_file = './cfg/yolov3-tiny.cfg'; weight_file = './weights/yolov3-tiny.weights'; annotateImgHeight = 416; annotateImgWeight = 416; classesNames = gTruth.Properties.VariableNames(2:end); classIDs = (0:length(classesNames)-1);% 从0开始标注,保持与darknet官网一致 numClasses = length(classesNames); structNamesIDs = struct(); for i = 1:numClasses structNamesIDs.(classesNames{i}) = classIDs(i); end bldsTrain = boxLabelDatastore(gTruth(:, 2:end)); imdsTrain = imageDatastore(gTruth.imageFilename); miniBatch = 16; imdsTrain.ReadSize = miniBatch; bldsTrain.ReadSize = miniBatch; trainingData = combine(imdsTrain, bldsTrain); [lgModel,hyperParams] = importDarknetWeights(cfg_file,weight_file);
and i'm getting this error:Error using importDarkNetLayers (line 38) Cannot open file: ./cfg/yolov3-tiny.cfg
Error in importDarknetWeights (line 30) moduleTypeList,moduleInfoList,layerToModuleIndex] = importDarkNetLayers(cfgfile);% only weights需要cutoff,layer都导入
Error in newyolo (line 19) [lgModel,hyperParams] = importDarknetWeights(cfg_file,weight_file);