Recognize song by humming into application
- Install the Python development environment on your system(pip is included in this): https://www.python.org/ftp/python/3.8.5/python-3.8.5-amd64.exe
- Create a virtual environment:
- Python virtual environments are used to isolate package installation from the system:
$
python -m venv --system-site-packages .\venv
- Activate the virtual environment:
$
.\venv\Scripts\activate
- Python virtual environments are used to isolate package installation from the system:
$
- Start by upgrading pip:
$
pip install --upgrade pip
-
Install the TensorFlow pip package
a.For GPU and CPU support: $
pip install --upgrade tensorflow
(For GPU, CUDA and CuDnn libraries are needed:https://towardsdatascience.com/installing-tensorflow-with-cuda-cudnn-and-gpu-support-on-windows-10-60693e46e781)
For CPU only (for office laptop):
$
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.3.0-cp38-cp38-win_amd64.whl
b.Verify the install: $
python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
-
Install remaining packages from requirements.txt: $
pip install -r requirements.txt
-
Run flask from hummingRecognition folder:$
python app.py
Paste the link in browser, if it doesn't open for http://0.0.0.0:5001/, Try http://localhost:5001/