pip3 install pipenv
pipenv shell
The official instructions on installing TensorFlow are here: https://www.tensorflow.org/install. If you want to install TensorFlow just using pip, you are running a supported Ubuntu LTS distribution, and you're happy to install the respective tested CUDA versions (which often are outdated), by all means go ahead. A good alternative may be to run a Docker image.
I am usually unhappy with installing what in effect are pre-built binaries. These binaries are often not compatible with the Ubuntu version I am running, the CUDA version that I have installed, and so on. Furthermore, they may be slower than binaries optimized for the target architecture, since certain instructions are not being used (e.g. AVX2, FMA).
So installing TensorFlow from source becomes a necessity. The official instructions on building TensorFlow from source are here: ht
Step 1. Run command: expo eject
in root of expo project.
Step 2. Choose 2nd option: Eject to ExpoKit and follow step to step from Expo command to eject it completely.
Step 3 (Optional) Install dependencies (normally, Expo will auto run this command)
yarn install
#!/bin/bash | |
# This will remove Apache | |
sudo service apache2 stop | |
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common | |
sudo apt remove apache2.* | |
sudo apt-get autoremove | |
whereis apache2 | |
sudo rm -rf /etc/apache2 |
Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
##Windows users:
cmder will be refered as console
##Mac Os, Ubuntu and windows users continue here:
homestead
utf8_general_ciEnterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF | |
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH | |
Keys are generic ones. These are the same from MSDN account. | |
Product Key : -6Q8QF | |
Validity : Valid | |
Product ID : 00369-90000-00000-AA703 | |
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017 |
# For Windows users# Note: <> denotes changes to be made | |
#Create a conda environment | |
conda create --name <environment-name> python=<version:2.7/3.5> | |
#To create a requirements.txt file: | |
conda list #Gives you list of packages used for the environment | |
conda list -e > requirements.txt #Save all the info about packages to your folder |
''' | |
Extract a known face from a video. | |
Uses a combination of a deep learning CNN model to batch detect faces | |
in video frames, or a sequence of images, in GPU with CUDA and HoG to compare | |
the detected faces with a computed reference set of face encodings. | |
''' | |
from os import path, listdir | |
from typing import NamedTuple |
''' | |
Extract a known face from a video. | |
Uses a combination of a deep learning CNN model to batch detect faces | |
in video frames, or a sequence of images, in GPU with CUDA and HoG to compare | |
the detected faces with a computed reference set of face encodings. | |
''' | |
from os import path, listdir | |
from typing import NamedTuple |