hcmlab / vadnet

Real-time Voice Activity Detection in Noisy Eniviroments using Deep Neural Networks

Home Page:http://openssi.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run this script on MAC?

rishabh-ojha98 opened this issue · comments

I tried to run the script on MacOS and encountered following error.
Please help me as i'm new to MacOS.

Traceback (most recent call last):

File "vad_extract.py", line 138, in
extract_voice(args.model, args.files, n_batch=args.n_batch)
File "vad_extract.py", line 55, in extract_voice
if not all([os.path.exists(checkpoint_path + x) for x in ['.data-00000-of-00001', '.index', '.meta']]):
File "vad_extract.py", line 55, in
if not all([os.path.exists(checkpoint_path + x) for x in ['.data-00000-of-00001', '.index', '.meta']]):
NameError: free variable 'checkpoint_path' referenced before assignment in enclosing scope

This error occurs when the passed path is a valid folder but have no checkpoints to load in it.
What's the value of the path-parameter in the extract_voice function?
Be aware that most parts of the project are windows only.
You may use some of the provided python scripts for your inspiration or as code templates but you won't be able to run the whole pipeline on you Mac.

I would also like the ability to run this on linux as well. It would be super cool if you guys created a Dockerfile that does the equivalent commands found in do_bin.cmd, and sets up a linux instance (running inside Docker) so that people can use this inside Linux.

I made a fork here which should make things clearer on how to run this on mac https://github.com/nlml/vadnet