bugfix(model): Fix the bug of moving model on MAC OS

This commit is contained in:
Wang Wang Wang 2021-11-12 20:14:47 +08:00
parent 27d9f324c6
commit 6e8445b4f4

View File

@ -78,11 +78,11 @@ print(multinet_model)
target_model = model_path + '/target'
if not os.path.exists(target_model):
os.makedirs(target_model)
os.system("rm %s/* -rf" % target_model)
os.system("rm -rf %s/*" % target_model)
if wakenet_model != 'null':
os.system("cp %s %s -rf" % (wakenet_model, target_model))
os.system("cp -rf %s %s" % (wakenet_model, target_model))
if multinet_model != 'null':
os.system("cp %s %s -rf" % (multinet_model, target_model))
os.system("cp -rf %s %s" % (multinet_model, target_model))
os.system("cp %s %s" % (wakenet_model+'/_MODEL_INFO_', target_model))
total_size = calculate_total_size(target_model)