Closed carljmosca closed 11 months ago
If you have all the models cached it can run offline, otherwise you should run it one time online for it to work offline
It seems to try to download in any case. The behavior I have observed without and internet connection is a failure. With a connection, it seems to leverage the existing .cache files.
Nemo redownloads the cache after any update to the pip package so that might be the case, but I'm sure you can run it without internet because I've tried
I can get past the attempt of the download of the model by specifying the fully-qualified file name but I still run into this call attempting to reach the internet:
msdd_model = NeuralDiarizer(cfg=create_config(temp_path)).to(args.device)
which ultimately results in this:
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
It does seem to work nicely (not doing but checking for downloads ) with an internet connection.
I see, I don't know how I missed this entirely as it tries to download the config file on each run, I'll think of a solution to cache the file or include it in the code
also looking for fully offline use
Offline usage has been added
Can diarize.py be run offline? I see where the faster-whisper project includes this option but I have not looked closely at NeMo but I assume it's possible.