abaybektursun / tf_tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tensorflow Tutorial

Example with Face Embeddings

Setting up an environment

Clone this repo and cd into it.

git clone https://github.com/abaybektursun/tf_tutorial
cd tf_tutorial

Make sure that you have virutalenv

pip3 install virtualenv

Now we will create a virtualenv. Follow the steps for your operating system

Linux

virtualenv --system-site-packages -p python3 ./venv
source ./venv/bin/activate
pip3 install --upgrade pip

Windows

virtualenv --system-site-packages -p python3 ./venv
.\venv\Scripts\activate

Installing Tensorflow and the other dependencies

If you have an NVIDIA card and want it to be utilized by TF, you can follow the instructions for GPU. Otherwise follow the CPU instructions.

CPU

pip3 install -r requirements_cpu.txt

GPU

pip3 install -r requirements_gpu.txt

In addition, you will have to have CUDA 9.0 and cuDNN installed.

Jupyter Notebook

Install new kernel for the jupyter notebook

ipython kernel install --user --name=tf_tutorial

Star the jupyter notebook

jupyter notebook

About


Languages

Language:Jupyter Notebook 58.5%Language:Python 41.1%Language:Shell 0.4%