darknet parser tested

This commit is contained in:
Francesco Gatti
2020-06-01 14:55:08 +02:00
parent 21518c5eef
commit af9bb411be
21 changed files with 112 additions and 30 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ int main() {
bin_path + "/layers/input.bin"
};
std::vector<std::string> output_bins = {
bin_path + "layers/output.bin"
bin_path + "/layers/output.bin"
};
std::string wgs_path = bin_path + "/layers";
std::string cfg_path = "../tests/darknet/cfg/yolo2.cfg";
@@ -25,6 +25,7 @@ int main() {
tk::dnn::NetworkRT *netRT = new tk::dnn::NetworkRT(net, net->getNetworkRTName(bin_path.c_str()));
int ret = testInference(input_bins, output_bins, net, netRT);
net->releaseLayers();
delete net;
delete netRT;
return ret;