stt-model-manager
stt-model-manager copied to clipboard
partial downloaded model is not handled correctly .
The problem is partial download is treated as successful download after restart stt-model-manager . A simple solution can be :
- using a tmp file name when downloading , and rename it after successful download.
- check file size and continue download after restart
How to reproduce
- open stt-model-manager
- click "Install a new model from the Coqui STT Model Zoo."
- choose any model to install , eg [English STT v0.9.3], wait the first file
- stop stt-model-manager before finish downloading ( at process 10%)
- restart stt-model-manager , reinstall the model , the process jump to 50% , wait to 51%
- stop stt-model-manager and restart again , the model is in "Installed STT models" section.
- try to run the model will cause Segmentation fault: 11