hcmlab / vadnet

Real-time Voice Activity Detection in Noisy Eniviroments using Deep Neural Networks
http://openssi.net
GNU Lesser General Public License v3.0
419 stars 77 forks source link

How to run this script on MAC? #14

Open rishabh-ojha98 opened 5 years ago

rishabh-ojha98 commented 5 years ago

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

shelm commented 5 years ago

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 _extractvoice 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.

bravecorvus commented 5 years ago

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.

nlml commented 4 years ago

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