allosaurus icon indicating copy to clipboard operation
allosaurus copied to clipboard

Change the location for the downloaded model

Open babat00nday opened this issue 4 years ago • 3 comments

Hi,

It would be great if there was support for modifying the location in which the latest model (and other model versions) would be downloaded into. For example python -m allosaurus.run [--lang <language name>] [--model <model name>] [--device_id <gpu_id>] [--output <output_file>] -i <audio file/directory> -mp <custom directory to save models to>

babat00nday avatar Oct 31 '20 15:10 babat00nday

I second this! At the moment if you package this using something like Pyinstaller then it will redownload the model every start new because pyinstaller cleans up the temporary directory for that afterwards. Manually selecting where to download the model to and from where to load it would help here.

steveway avatar Jun 08 '21 13:06 steveway

Oh, I did not realize this issue. It makes a lot of sense, we will fix it

xinjli avatar Jun 08 '21 13:06 xinjli

@toonday This Pull Request implements some functionality for loading models to a manually selectable location: https://github.com/xinjli/allosaurus/pull/28 This has been integrated in release 1.0.1 of allosaurus.

steveway avatar Jul 02 '21 12:07 steveway