ARM-software / ML-KWS-for-MCU

Keyword spotting on Arm Cortex-M Microcontrollers
Apache License 2.0
1.12k stars 414 forks source link

ValueError : The passed save_path is not a valid checkpoint #120

Open Shenfanlin opened 4 years ago

Shenfanlin commented 4 years ago

my checkpoint path is absolute path but it is valueerror when i ran the freeze.py in the ML-KWS-for-MCU.How can i solve this problem?

rookie-may commented 4 years ago

my checkpoint path is absolute path but it is valueerror when i ran the freeze.py in the ML-KWS-for-MCU.How can i solve this problem?

I also have the same problem, have you solved it?

dimanshu commented 4 years ago

@rookie-may did u solve it?

maxbalrog commented 4 years ago

@dimanshu I've had the same issue, here is what solved it for me. Hope this might be helpful.

In my checkpoint folder (.../ckpt/), I've had 3 files:

<model_name>.ckpt-30000.index
<model_name>.ckpt-30000.meta
<model_name>.ckpt-30000.data-00000-of-00001

The script freeze.py worked just fine for me when I ran it with flag --checkpoint <path_to_your_ckeckpoint_folder>/ckpt/<model_name>.ckpt-30000