installation stub
parent
e4e8862c6e
commit
d176821fdf
51
README.md
51
README.md
|
@ -41,6 +41,57 @@ The following scripts are in the repo:
|
|||
* `wut-review-staging` --- Review all images in `data/staging`.
|
||||
|
||||
|
||||
# Installation
|
||||
Most of the scripts are simple shell scripts with few dependencies.
|
||||
|
||||
## Setup
|
||||
The scripts use files that are ignored in the git repo.
|
||||
So you need to create those directories:
|
||||
|
||||
```
|
||||
mkdir -p download
|
||||
mkdir -p data/train/good
|
||||
mkdir -p data/train/bad
|
||||
mkdir -p data/train/failed
|
||||
mkdir -p data/validation/good
|
||||
mkdir -p data/validataion/bad
|
||||
mkdir -p data/validataion/failed
|
||||
mkdir -p data/staging
|
||||
mkdir -p data/test/unvetted
|
||||
```
|
||||
|
||||
## Debian Packages
|
||||
You'll need `curl` and `jq`, both in Debian's repos.
|
||||
|
||||
```
|
||||
apt update
|
||||
apt install curl jq
|
||||
```
|
||||
|
||||
## Machine Learning
|
||||
For the machine learning scripts, like `wut-ml`, both Tensorflow
|
||||
and Keras need to be installed. The versions of those in Debian
|
||||
didn't work for me. IIRC, for Tensorflow I built a `pip` of
|
||||
version 2.0.0 from git and installed that. I installed Keras
|
||||
from `pip`. Something like:
|
||||
|
||||
```
|
||||
# XXX These aren't the exact commands, need to check...
|
||||
# Install bazel or whatever their build system is
|
||||
# Install Tensorflow
|
||||
git clone tensorflow...
|
||||
cd tensorflow
|
||||
./configure
|
||||
# run some bazel command
|
||||
dpkg -i /tmp/pkg_foo/*.deb
|
||||
apt update
|
||||
apt -f install
|
||||
# Install Keras
|
||||
pip3 install --user keras
|
||||
# A million other commands....
|
||||
```
|
||||
|
||||
|
||||
# Usage
|
||||
The main purpose of the script is to evaluate an observation,
|
||||
but to do that, it needs to build a corpus of observations to
|
||||
|
|
Loading…
Reference in New Issue