|
|
TODO: Check if it works!
|
|
|
|
|
|
|
|
|
## General Setup:
|
|
|
-MainProgrammingLanguage: Python (2.x)
|
|
|
-GUI: PyQt 5.x
|
|
|
-Deep-Learning-Framework: Caffe
|
|
|
-OS: Linux
|
|
|
- MainProgrammingLanguage: Python (2.x)
|
|
|
- GUI: PyQt 5.x
|
|
|
- Deep-Learning-Framework: Caffe
|
|
|
- OS: Linux (other operation systems might work, but aren't tested intensively)
|
|
|
|
|
|
## Example: Ubuntu
|
|
|
Barista is written in Python so first of all install Python and the package manager pip, which is needed to install other Python Modules:
|
|
|
## Installation Instructions
|
|
|
Note that, this tutorial is aimed to describe an installation on Ubuntu 16.04 x86. However, it should be adoptable to further operation systems quite intuitively.
|
|
|
|
|
|
### Python, pip and Qt
|
|
|
Barista is written in Python 2. So first of all, install Python and the package manager pip, which is needed to install other Python Modules:
|
|
|
`$ sudo apt-get install python-2.7 python-pip`
|
|
|
PyQt is needed for Baristas GUI install via:
|
|
|
`$ sudo aptitude install python-qt4`
|
|
|
|
|
|
Now you have to install caffe for a detailed description see: http://caffe.berkeleyvision.org/installation.html
|
|
|
PyQt is needed for Baristas GUI. To install it, run:
|
|
|
`$ sudo aptitude install python-qt4`
|
|
|
|
|
|
## Requirements
|
|
|
There are a number of Python modules that need to be installed in order to run Barista. All of them can be easily installed by using the requirements file. The command to install all requirements is as follows:
|
|
|
`$ pip install -r /path/to/requirements.txt`
|
|
|
|
|
|
### Caffe
|
|
|
Of course, you need a working installation of caffe. For a detailed description see [the official website](http://caffe.berkeleyvision.org/installation.html).
|
|
|
|
|
|
## Launching Barista
|
|
|
From the barista root directory run the main.py
|
|
|
Finally, you can run Barista from its root directory by using the main.py:
|
|
|
`python main.py`
|
|
|
|
|
|
## Caffe Root
|
|
|
## Configure Caffe Root
|
|
|
The caffe root informations are loaded from python informations. Every user has to edit his 'bashrc-file' in his home folder. Open '~/.bashrc' with a text editior and add on the end of the file the line 'export PYTHONPATH=/usr/local/caffe/caffe-master/python:$PYTHONPATH' ('/usr/local/caffe/caffe-master/python' means the path to the place where you have installed caffe).
|
|
|
You can change the path in program settings of Barista. (this is not working correctly at the moment, because not all caffe informations get reloaded by this. But training works with the new files).
|
|
|
|
... | ... | |