Code Monkey home page Code Monkey logo

voice-to-age's Introduction


Author: Shahan Ali Memon

Mentors: Rita Singh, Bhiksha Raj

Copyright (c) 2017 Carnegie Mellon University



REQUIREMENTS:

To run the voice2age.py program, you would need the following libraries:

  • keras
  • numpy
  • sox (python library via pip install sox)
  • scipy

Once you have installed the above requirements (using pip install), you can run the program as follows:

$ python voice2age.py

The above program will print an age range that the classifier would predict.

PS. If the model does not load due to the error "Can't load_model with error “Optimizer weight shape [..]", then you would need to run the convert_to_old.py program as most probably this issue has to do with the version of keras you are using.

Now you should try to run the program again.



voice-to-age's People

Contributors

samemon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

voice-to-age's Issues

Can't run the program

I met an error when I tried to run the program. Can you give any advice on how to solve it?

This is the error message.

_LYoungdeMacBook-Pro:~ lyoung$ python /Users/lyoung/Repository/Voice-to-Age-master/voice2age.py /Users/lyoung/Desktop/1243501.v.wav
Using TensorFlow backend.
Traceback (most recent call last):
File "/Users/lyoung/Repository/Voice-to-Age-master/voice2age.py", line 51, in
model = load_model("age_range_classifier.h5")
File "/usr/local/lib/python2.7/site-packages/keras/engine/saving.py", line 417, in load_model
f = h5dict(filepath, 'r')
File "/usr/local/lib/python2.7/site-packages/keras/utils/io_utils.py", line 186, in init
self.data = h5py.File(path, mode=mode)
File "/Users/lyoung/Library/Python/2.7/lib/python/site-packages/h5py/_hl/files.py", line 394, in init
swmr=swmr)
File "/Users/lyoung/Library/Python/2.7/lib/python/site-packages/h5py/_hl/files.py", line 170, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py.objects.with_phil.wrapper
File "h5py/h5f.pyx", line 85, in h5py.h5f.open
IOError: Unable to open file (unable to open file: name = 'age_range_classifier.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Thanks a lot!

Model is not available

Hello Shahan

Thanks for making your work available for researchers.
The model file is not available for testing, can you please guide us on how to get the trained model.

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.