mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
feat(model): Add auto moving model files
This commit is contained in:
parent
6e8445b4f4
commit
3ce34fe340
@ -83,7 +83,7 @@ if wakenet_model != 'null':
|
|||||||
os.system("cp -rf %s %s" % (wakenet_model, target_model))
|
os.system("cp -rf %s %s" % (wakenet_model, target_model))
|
||||||
if multinet_model != 'null':
|
if multinet_model != 'null':
|
||||||
os.system("cp -rf %s %s" % (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))
|
# os.system("cp %s %s" % (wakenet_model+'/_MODEL_INFO_', target_model))
|
||||||
|
|
||||||
total_size = calculate_total_size(target_model)
|
total_size = calculate_total_size(target_model)
|
||||||
print("Recommended model partition size: ", str(int((total_size / 1024 + 500) / 4 ) * 4) + 'KB')
|
print("Recommended model partition size: ", str(int((total_size / 1024 + 500) / 4 ) * 4) + 'KB')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user