Move download of weights inside build folder

Signed-off-by: Micaela Verucchi <micaelaverucchi@gmail.com>
This commit is contained in:
Micaela Verucchi
2020-04-17 22:36:25 +02:00
parent 4cd1f544f7
commit ec7620ebb6
30 changed files with 820 additions and 818 deletions
+2
View File
@@ -22,9 +22,11 @@ bool fileExist(const char *fname) {
void downloadWeightsifDoNotExist(const std::string& input_bin, const std::string& test_folder, const std::string& weights_url){
if(!fileExist(input_bin.c_str())){
std::string mkdir_cmd = "mkdir " + test_folder;
std::string wget_cmd = "wget " + weights_url + " -O " + test_folder + "/weights.zip";
std::string unzip_cmd = "unzip " + test_folder + "/weights.zip -d" + test_folder;
std::string rm_cmd = "rm " + test_folder + "/weights.zip";
system(mkdir_cmd.c_str());
system(wget_cmd.c_str());
system(unzip_cmd.c_str());
system(rm_cmd.c_str());