TejasQ / gen-subs

Generate subtitles for your videos with secure, on-device machine learning models.
223 stars 19 forks source link

gen-subs does not download models. #15

Open NomNomSu opened 4 months ago

NomNomSu commented 4 months ago

Nothing happens when choosing model to download: Steps to reproduce:

  1. npx gen-subs models
  2. choose japanese
  3. confirm
  4. choose (1.00GB) Big model for Japanese
  5. confirm

Result: ? Please choose a language Japanese ? Here are your models ✔ Models updated.

No error, no link to manualy download the model, no documentation how to manually load models.

TheSamDickey commented 1 month ago

Same exact issue here - I was also attempting to use Japanese and ran into the same problem. This project seems promising, but pointless if models can't be downloaded. I am on an Ubuntu VM if that helps.

It'd be nice, even if it runs into an error, if it at least spit out an error message to start troubleshooting.

If I have some time I can try to create a Pull Request

TheSamDickey commented 1 month ago

Workaround: Line 56 of util.ts shows all the download URLs for the models. Find your OS's temporary directory (on Ubuntu it's /tmp) and put it under the gen-sub's model directory (on Ubuntu it'd be /tmp/gen-subs/models). You'll also need to unzip the downloaded zip in that models directory.

At least I'm able to use it now, hopefully someone finds this useful or is able to solve the bug with this info